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

How do you work around them?

0 Answers   Amazon,


What Is A Default Constructor in C++ ?

0 Answers   Amazon,


What is the difference between creating an object, using 'new' and using 'malloc'?

3 Answers   HFG, Siemens,


What does it mean to declare a function or variable as static?

0 Answers   Amazon,


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

1 Answers  


Write a C++ Program to Find Sum and Average of three numbers.

1 Answers  


Explain what happens when an exception is thrown in C++.

0 Answers   Amazon,


How do you write a function that can reverse a linked-list in C++?

0 Answers   IBS,


what is the difference between a pointer and a reference?

0 Answers   Amazon, Blue Star, C DAC,


Write a C++ Program to Find whether given Number is Odd or Even.

1 Answers  


What is name mangling/name decoration?

0 Answers   Amazon,


When must you use a constructor initializer list?

0 Answers   Amazon,


Categories