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

What is the difference between mutex and binary semaphore?

824


What is difference between n and endl in c++?

766


What is new keyword in oops?

770


Can you please explain the difference between overloading and overriding?

810


Difference between overloaded functions and overridden functions

806


What is the meaning of string in c++?

785


Which is the best c++ compiler for beginners?

782


Why struct is used in c++?

806


What is a local reference?

897


How do you declare a set in c++?

723


What is a multimap c++?

858


How much do coding jobs pay?

755


What is class in oop with example?

815


Name the implicit member functions of a class.

821


Define stacks. Provide an example where they are useful.

770