InterviewSolution
Saved Bookmarks
| 1. |
Why do we use constructor overloading?(a) To use different types of constructors(b) Because it’s a feature provided(c) To initialize the object in different ways(d) To differentiate one constructor from anotherThe question was asked in an online interview.My doubt stems from Overloading Constructors topic in chapter Constructors and Destructors of Object Oriented Programming |
|
Answer» Right choice is (c) To INITIALIZE the object in DIFFERENT ways |
|