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

What two numbers add to equal -11 and multiply to equal 28?What two numbers add to equal -20 and multiply to equal 51?What two numbers add to equal -5 and multi
what is 3/8 times 2/9? Answers: A 5/17 B 5/12 C 1/17 D 1/12
the area of a square is 16 cm2. what are its linear dimensions
what is 3/8 times 2/9? Answers: A 5/17 B 5/12 C 1/17 D 1/12
6 people meet for a business lunch. Each person shakes hands once with each other person present. How many handshakes take place?
Jessica's shoebox is 20 centimeters long and 10 centimeters wide. How many more millimeters is the length of the shoebox than the width?
An energy value of 3.313 × 10^{-19} joules is needed to break a chemical bond. What is the wavelength of energy needed to break the bond? (The speed of light =
What is the solution to the equation? 1 minus z/5=9 Answers: A. z = 50
the product of 16 and 4 less than a number is 208. Find the number.
how to solve 2/3 of 2/3