Is deconstructor overloading possible? If yes then explain and if no
Then why?
Answer Posted / 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 View All Answers
Explain terminate() function?
What is meant by const_cast?
Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].
Can a constructor be private?
How do you invoke a base member function from a derived class in which you have not overridden that function?
What is the main feature of oop?
Which type does string inherit from?
In what situations do you have to use initialization list rather than assignment in constructors?
Define a nested class.
Explain 'this' pointer and what would happen if a pointer is deleted twice?
what is C++ objects?
Write some differences between an external iterator and an internal iterator?
What is the difference between global variables and local variable
Specify some guidelines that should be followed while overloading operators?
What is the significance of classes in oop?