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



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

Answer / 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

More C++ Interview Questions

Explain the operator overloading feature in C++ ?

0 Answers  


What are the different scope C++ provide ?

0 Answers   Amdocs,


What is meant by exit controlled loop?

0 Answers   Adobe,


How do you work around them?

0 Answers   Amazon,


How to delete array of objects in C++? Proof by C++ code for proper deletion

0 Answers  


Difference between Call by pointer and by reference.

0 Answers   Adobe,


Declare a pointer to a function that takes a char pointer as argument and returns a void pointer.

0 Answers   Alter,


C++ supports multiple inheritance. What is the “diamond problem” that can occur with multiple inheritance? Give an example.

0 Answers  


What is constant keyword in C++? Illustrate its various uses.

0 Answers   Akamai Technologies, Infogain,


When must you use a constructor initializer list?

0 Answers   Amazon,


Define an Abstract class in C++?

0 Answers  


What are string library functions(syntax).

0 Answers   Accenture,


Categories