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 partial specialization or template specialization?

0 Answers   Amazon,


Write a syntax and purpose of switch statement.

0 Answers   Agilent,


How to stop class inheritance in C++ with condition that object creation should be allowed

0 Answers  


What is the difference between an ARRAY and a LIST in C++?

1 Answers   IBS, TCS,


Tell How To Check Whether A Linked List Is Circular ?

1 Answers   IBS, Infosys,


How does free know the size of memory to be deleted

0 Answers  


What are the costs and benefits of using exceptions?

0 Answers   Amazon,


Write a C++ program to print strings in reverse order.

0 Answers   Amdocs,


what is a pragma in C++?

0 Answers   Aspire,


Tell us the size of a float variable.

0 Answers   Accenture,


What does it mean to declare a member function as static in C++?

0 Answers   Amazon,


Write a C++ Program to Check Whether a character is Vowel or Consonant.

2 Answers  


Categories