Questions tagged as 'sobrecarga'

1
answer

What are the differences between overrideing and overloading in Java?

What are the main differences between overrideing and overloading in Java? What is the relationship between these terms with Polymorphism?     
asked by 14.03.2017 / 12:58
4
answers

Is method overload less performative?

I was reading about interfaces as part of my studies and came across an overloading class of methods, with two comments saying that this should be avoided. I was in doubt about it affecting the performance. Affect?     
asked by 21.10.2017 / 06:15
2
answers

How to perform methods overload with PHP?

How to perform overloading of methods with PHP? In order to declare methods with the same name but with different parameters.     
asked by 12.02.2015 / 18:05
3
answers

What is operator overload?

In some programming languages such as C++ , it is possible to overload operators. What is it and what is it for?     
asked by 02.05.2015 / 19:47
1
answer

Method overload (double and float)

Having 2 methods with the same name, but the types are different ( double and float ), the amount of parameter is the same, which one will Java recognize first and why?     
asked by 12.05.2016 / 22:30
3
answers

Builder builder?

I would like to understand why this class has two constructors and why one of them has everything inside this and not separate as in the other. Does that change anything? Normal constructor: public Conta(Correntista correntista, String...
asked by 24.06.2017 / 17:36
3
answers

How to use constructor overload in TypeScript?

In languages with C #, for example, you can use the builder overload as shown below: public class Teste{ public Teste(bool a, int b, string c){ } public Teste(bool a, int b){ } public Teste(bool a){ } } After...
asked by 11.10.2016 / 19:52
1
answer

Method overload is polymorphism?

I'm having trouble understanding the concept of polymorphism in Java, I've read two articles from the same portal now, and got confused more, because for my interpretation they contradict each other: Excerpt 1:    "Overload is a concept of...
asked by 27.06.2018 / 03:40
3
answers

Methods with the same name but with different number of parameters [duplicate]

In C # or Java in a class I can define methods with the same name but with different variables, like this: //em C# public class Classe { public String teste(String hello, String world){ return hello + world; } public Str...
asked by 08.04.2016 / 05:16
1
answer

Overloading operators in C #

I have some doubts about overloading operators in C #. What is it for? Is your concept the same as overload in Java methods? Is there a practical example of doing this on a daily basis?
asked by 07.11.2018 / 19:56