antlife9316 antlife9316
  • 14-09-2019
  • Computers and Technology
contestada

What is the difference between the default constructor and the overloaded constructor?

Respuesta :

ExieFansler ExieFansler
  • 17-09-2019

Explanation:

A default constructor is a constructor that present in the class by default with no parameters when we write a new constructor with parameters it is called overloaded constructor.There can be different overloaded constructors in the same class.

The main difference between default constructor and overloaded constructor is that the default constructor does't have any parameters while the overloaded constructors have parameters.

Answer Link

Otras preguntas

Another name for the Great Plains
what does theocracy mean?
a 15kg child is riding a merry go round at 3rpm. what centripetal force must she exert if she is 8m from the center
If an outdoor runner develops a headache, feels tired, and has an elevated heart rate, what is the most probable cause? A. Insufficient calories B. Overhydratio
Without subtracting 8.5-4.6 for what digit will be in the hundreds place
Without subtracting 8.5-4.6 for what digit will be in the hundreds place
Which of the following is the primary source that would provide the most reliable insider veiw of a particular event ? A historical article about Calamity Jane
The part of the US government that carries out laws is the legislative branch. judicial branch. executive branch. congressional branch.
The Olmec civilization was located in _____. Mesopotamia North America Mesoamerica Africa
what attracted non muslims to islam and islamic culture