Is it possible to overload the destructor of the class in c++?
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.
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
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