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

What is the difference between malloc, calloc and realloc?

0 Answers   Alter,


Write a syntax and purpose of switch statement.

0 Answers   Agilent,


Explain the importance of method overloading in C++?

0 Answers   Akamai Technologies, Infogain,


What is C++11?

0 Answers   Adobe,


Difference between Call by pointer and by reference.

0 Answers   Adobe,






Explain about Searching and sorting algorithms with complexities

0 Answers   Accenture,


Mention the default functions in C++, how would you detect that error has occurred inside the constructor and destructor.

0 Answers   Adobe,


If class D is derived from a base class B

0 Answers  


What does malloc return in C and C++?

0 Answers   Alter,


How can you force the compiler to not generate them?

0 Answers   Amazon,


What do you by Function Overloading in C++?

0 Answers   Akamai Technologies, Infogain,


Write a program to read two numbers from the keyboard and display the larger value on the screen

1 Answers  


Categories