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 |
How do you write a function that can reverse a linked-list in C++?
Tell How To Check Whether A Linked List Is Circular ?
What is conversion constructor in C++
Factory Method C++ – How to delete pointers returned by it
What is the difference between creating an object, using 'new' and using 'malloc'?
Is there a difference between class and struct?
There is a base class sub, with a member function fnsub(). There are two classes super1 and super2 which are sub classes of the base class sub.if and pointer object is created of the class sub which points to any of the two classes super1 and super2, if fnsub() is called which one will be inoked?
Implement a 2D bit-matrix representing monochrome pixels which will have only OFF/ON values and will take on an average only one bit of memory for each stored bit. How to perform various operations on it?
How to delete array of objects in C++? Proof by C++ code for proper deletion
How to convert integer to string in C++
How can a C function be called in a C++ program?
explain the term 'resource acquisition is initialization'?