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 are Agilent PRECOMPILERS?
Write a C++ Program to Check Whether a character is Vowel or Consonant.
Name the operators that cannot be overloaded.
What is a memory leak in C++?
Write a C++ program to print strings in reverse order.
Tell us the size of a float variable.
What is the meaning of the following declaration: int *const *const *i?
What is a COPY CONSTRUCTOR and when is it called?
What are the advantages/disadvantages of using #define?
What is name mangling/name decoration?
What is the 4 difference between delete[] and delete?
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?