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

round 7,782 to the nearest hundred
PLEASE HELP I GIVE THANKS
A pet store currently has a total of 45 cats and dogs. There are 7 more cats than dogs. Find the number of cats and dogs in the store. Write and solve a system
Write expression using the distributive property to find the product of 7 times 63
Divide the polynomial in the numerator by the trinomial in the denominator m^3-m^2-4m+1 /m^2+2m-3
What is the surface area of the prism? A. 144 in2 B. 420 in2 C. 288 in2 D. 140 in2 I really don't know where to post a link to the prism pic
why is it critical to your cells to be near capillaries
what rule does static electricity follow
Which word has the long e sound? a. client b. inferior c. beautiful d. poetic
what was NOT a primary goal of marriage in a feudal system at the noble level? A. Exchange of land and goods B. love and companionship C. Political arrangement