InterviewSolution
Saved Bookmarks
| 1. |
The constructor _____________(a) Have a return type(b) May have a return type(c) Of derived classes have return type(d) Doesn’t have a return typeI have been asked this question in an online quiz.The above asked question is from Execution of Constructor or Destructor in division Constructors and Destructors of Object Oriented Programming |
|
Answer» RIGHT option is (d) Doesn’t have a return type Explanation: The CONSTRUCTORS doesn’t have any return type. The constructors are intended to allocate the resources for the OBJECT. MEMORY spaces are to be FINALIZED. |
|