Is deconstructor overloading possible? If yes then explain and if no
Then why?
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 |
What is a COPY CONSTRUCTOR and when is it called?
Difference between function overloading and function overriding.
What's the value of the expression 5["abxdef"]?
What does it mean to declare a function or variable as static?
What is the meaning of the following declaration: int *const *const *i?
What is the difference between realloc() and free() in C++?
Tell me about virtual function
What are string library functions(syntax).
Explain function prototypes in C++.
What is a memory leak in C++?
Can we call a virtual function from a constructor?
Factory Method C++ – How to delete pointers returned by it