Ask Question
27 May, 02:19

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

+3
Answers (1)
  1. 27 May, 03:43
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers