aris8tereMary aris8tereMary
  • 26-03-2017
  • Computers and Technology
contestada

When an object is defined without an argument list for its constructor, the compiler automatically calls the object's default constructor?

Respuesta :

spartan1244 spartan1244
  • 27-03-2017
Yes, but your wording is a little off. When an object is created without an argument list/ parameters, the default constructor is called. The one caveat is if the default constructor has been deleted. Then a compilation error will be thrown. I'll also add that it depends on the language and compiler. So if you want more details, you need to tell us what language you are referring too.
Answer Link

Otras preguntas

Solve the system by graphing y=2x-4 and y=2x
18) If Holstein cows produce milk that is on average 3.66% butterfat and Jersey cows produce milk that is on average 4.5% butterfat, how many gallons of Jersy m
I didn't grasp this topic too well. can someone help me?
Why doesn’t Squeaky know the winner of the race at first
Not sure what the answer is. Please don't answer if you're not sure what the answer is. Thanks!
This figure is made from a part of a square and a part of a circle. What is the perimeter of this figure, to the nearest unit? ______ units
PLEASE HELP: What was the most important moment of the women’s rights movement, 1960-present? Please include reasoning and make it at least 1-2 paragraphs. I'll
Help me, solve for x
Why was the crisis so devastating for Latin America and European colonies in Africa and Asia?
Elements in group 18 of the periodic table are sometimes called inert gases. Explain why they received his name and what it is about their atomic structure that