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

What caused the battle of Yorktown
a student was given two sets , set a and set b . which of the following statements is true ?
What are the two types of triangles used in drafting?
Because King James I also ruled Scotland, when he became the King of England the country became known as _____________. a. Great Britain c. Great England b.
how to simplify (n+1)!
A+B-C=3pi then find sinA+sinB-sinC
Scientists follow specific processes in order to determine valid explanations and conclusions from scientific data. Students graduating from Rydell High School
Ana, ¿a quién le hablas español?
Find the inverse of the function y = 2x2 + 2
In 1812, Napoleon was involved in the __________ (Battle of Austerlitz/Peninsular War/Battle of Waterloo). He had succeeded in gaining control over states such