1.

The destructor can be called before the constructor if required.(a) True(b) FalseThis question was posed to me in an online interview.Enquiry is from Execution of Constructor or Destructor in chapter Constructors and Destructors of Object Oriented Programming

Answer»

The correct choice is (b) False

Best EXPLANATION: The destructors can be called only after the constructor CALLS. It is not a MANDATORY rule but the DELETION can only take place if there is something CREATED using the constructor.



Discussion

No Comment Found

Related InterviewSolutions