Sail E0 Webinar
Question
Which is called on allocating the memory for array of objects?
Options:
A .  destructor
B .  constructor
C .  method
D .  None of the mentioned
Answer: Option B


When you allocate memory for an array of objects, the default constructor must be called to construct each object. If no default constructor exists, you're stuck needing a list of pointers to objects.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers