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

Briefly explain various access specifiers in C++.

0 Answers   Amdocs,


In C++ what is a vtable and how does it work?

0 Answers   Agilent,


Write a program to input an integer from the keyboard and display on the screen “WELL DONE” that many times.

1 Answers  


How to convert integer to string in C++

0 Answers  


Tell us the size of a float variable.

0 Answers   Accenture,






What Are The Differences Between A C++ Struct And C++ Class?

2 Answers   Wipro,


What is data abstraction? How is it implemented in C++?

0 Answers   Amdocs,


How to input string in C++

0 Answers  


When would you choose to return an error code rather than throw an exception?

0 Answers   Amazon,


What are the advantages and disadvantages of B-star trees over Binary trees?

0 Answers  


Find the Factorial of a number using a program.

0 Answers   Accenture,


When must you use a constructor initializer list?

0 Answers   Amazon,


Categories