InterviewSolution
Saved Bookmarks
| 1. |
What is constructor? what are its special characteristics? |
|
Answer» Constructors have the same name as that of the class they BELONG to. Constructors are executed when an object is declared. The main function of constructor is to initialize objects and allocate appropriate memory to objects. Though constructors are executed IMPLICITLY, they can be invoked explicitly |
|