1.

The destructors _____________________(a) Can have maximum one argument(b) Can’t have any argument(c) Can have more than one argument(d) Can’t have more than 3 argumentsI have been asked this question in final exam.The query is from Execution of Constructor or Destructor topic in division Constructors and Destructors of Object Oriented Programming

Answer»

Right choice is (b) Can’t have any argument

Easiest explanation - The destructors doesn’t have any arguments. The destructors have to be called implicitly WHENEVER an object goes out of SCOPE. The USER can’t pass argument to the IMPLICIT CALL.



Discussion

No Comment Found

Related InterviewSolutions