1.

Destructors can be ________(a) Abstract type(b) Virtual(c) Void(d) Any type depending on situationThis question was posed to me in an online quiz.This question is from Destructors topic in portion Constructors and Destructors of Object Oriented Programming

Answer»

Correct option is (b) Virtual

Easiest explanation - The destructors can be virtual. It is actually advised to keep the destructors virtual ALWAYS. This is DONE to suppress the problems that may ARISE if inheritance is involved.



Discussion

No Comment Found

Related InterviewSolutions