Is deconstructor overloading possible? If yes then explain and if no
Then why?

Answer Posted / hrpynux@gmail.com

No, we cannot overload a destructor of a class in C++ programming. Only one empty destructor per class should be there.So, multiple destructor with different signatures are not possible in a class. Hence, overloading is also not possible.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to get the oracle certification? send me the answer

1668


Why is abstraction needed?

563


What is abstraction c++?

587


What is new in c++?

574


What is a hashmap c++?

566






What is the difference between delegation and implemented-in-terms-of?

517


Describe protected access specifiers?

675


Which is not a valid keyword a) public b) protected c) guarded

738


What is encapsulation in simple terms?

535


What is object oriented programming (oop)?

619


What problems might the following macro bring to the application?

616


What does it mean to declare a destructor as static?

621


Is c or c++ more useful?

572


Are strings mutable in c++?

692


Can enum be null?

583