InterviewSolution
Saved Bookmarks
| 1. |
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 constructorThis question was addressed to me during an interview.My question is from Object Array topic in division Object of Object Oriented Programming |
|
Answer» The correct answer is (d) The class MUST have a default or zero argument constructor |
|