williamschris2907 williamschris2907
  • 23-08-2017
  • Computers and Technology
contestada

When a dynamic array with a class for a base type is declared, which constructor is called?

Respuesta :

tonb
tonb tonb
  • 23-08-2017
The default constructor is called for each element of the array. So if you declare an array with 100 elements (object instantiations), the constructor is executed 100 times!
Answer Link

Otras preguntas

1. Write a rule for the sequence. 8, -1, -10, -19... A. Start with 8 and add -9 repeatedly B. Start with -9 and add 8 repeatedly C. Start with 8 and add 9
simplify (3x-5)+(5x+1)
What is the length of h?
What do consumers and businesses in a market economy seek to do?
Mike and Lon came to a party together. A friend offered Mike a ride home. However, there was no room in the car for Lon. What are Mike's choices?
how did the united states respond to increasing totalitarian aggression in europe and asia
What are the three classes of nutrients that supply energy?
What is the formula for tons to meters
The indoor pool has a temperature of 75 degrees ​​ F The outdoor pool has a temperature of 72 degrees F Which pool has a higher temperature? Indoor Outdoor Whi
What is 9 times 5 cubed