Ask Question
17 December, 23:57

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

+5
Answers (1)
  1. 18 December, 00:17
    0
    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!
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “When a dynamic array with a class for a base type is declared, which constructor is called? ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers