InterviewSolution
Saved Bookmarks
| 1. |
If constructor arguments are passed to objects of array then ____________ if the constructors are overloaded.(a) It is mandatory to pass same number of arguments to all the objects(b) It is mandatory to pass same type of arguments to all the objects(c) It is not mandatory to call same constructor for all the objects(d) It is mandatory to call same constructor for all the constructorsThe question was asked during an online interview.My question comes from Object Array topic in chapter Object of Object Oriented Programming |
|
Answer» Correct answer is (C) It is not mandatory to call same constructor for all the objects |
|