Q:

Is it possible to overload the destructor of the class in c++?

0

Is it possible to overload the destructor of the class in c++?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Answer:

No. You can not overload the destructor of the class. You can’t pass parameters to the destructor anyway, so there’s only one way to destroy an object.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C++ Interview Questions and Answers(2022)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Should I explicitly call a destructor on a local v... >>
<< When is the destructor called in c++?...