Ask Question
24 December, 04:13

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

+5
Answers (1)
  1. 24 December, 05:36
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers