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++?
Write a program to read the values a, b and c and display x, where x=a/b–c. Test the program for the following values: (a) a = 250, b = 85, c = 25 (b) a = 300, b = 70, c = 70
How to stop class inheritance in C++ with condition that object creation should be allowed
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?
What is a COPY CONSTRUCTOR and when is it called?
C++ supports multiple inheritance. What is the “diamond problem” that can occur with multiple inheritance? Give an example.
What is name mangling/name decoration?
What is data abstraction? How is it implemented in C++?
What is conversion constructor in C++
Write a program to read two numbers from the keyboard and display the larger value on the screen
What is pass by value & reference.
What is an abstract class in C++
0 Answers SwanSoft Technologies,