Which is called on allocating the memory for the array of objects?

a) destructor
b) constructor
c) method
d) class

1 thought on “Which is called on allocating the memory for the array of objects?”

  1. b
    Explanation: 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.

Leave a Comment