adplus-dvertising
frame-decoration

Question

Which is the condition that must be followed if the array of objects is declared without initialization, only with size of array?

a.

The class should have separate constructor for each object

b.

The class must have no constructors

c.

The class should not have any member function

d.

The class must have a default or zero argument constructor

Answer: (d).The class must have a default or zero argument constructor

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which is the condition that must be followed if the array of objects is declared without initialization, only with size of array?