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

adam used the three fraction s to make a circle graph and colored each a different color. what fraction of the graph is not colored?
What features distinguish anthropoids from strepsirrhines
What is the difference between proper and common adjectives?
Christina is making a blanket for her baby granddaughter. The blanket will have ribbon around all 4 edges. There will be:94 feet of ribbon on the top edge94 fee
jessie sorted the coins in her bank. she made 7 stacks of 6 dimes and 8 stacks of 5 nickels. she then found 1 dime and 1 nickel. how many dimes and nickels does
Why did the Marbury v. madison case happen?
During a soccer season, Mario made approximately 2 goal points for every 5 of his shots on goal.  What is the probability that Marion would make 2 goal points o
Leo has a total of 45c. he has some dimes and pennies . How many  different combinations of dimes and pennies could Leo have?make a table to solve.
the area where rock under stress breaks and triggers an earthquake is called the ___________
is 5/12 bigger than 3/7