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

Two angles are supplementary. They are represented by (3x)° and (12x+1)°. Find both angles.
Which of the following most accurately describes the force theory of the origins of the state? O a. God gave rulers the right to run states. O b. States origina
A turtle moves at a speed of 1.0km/h. How fast is the turtle moving in meter per second (m/s)?
what single property was the most important in jesseca's material
Which of the following limited topics would be appropriate for a short paper?
Explain the shift from artisan to factory worker, and discuss the factory system. What were the advantages and disadvantages
What value of x will make each equation below true? 4x-1=4x+7
A student determines the volume of a cube to be 4.6 cm? What is the percent error if the correct volume of the crystal is 4.3 cm??
Convert to scientific notation: 0.0509.
60÷3[150÷2{6+3(17-14)}]​