Can destructor be overloaded?



Can destructor be overloaded?..

Answer / Nripendra Misra

No, a destructor cannot be overloaded. A class can have only one destructor.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOPS Interview Questions

How is the using() pattern useful? What is IDisposable? How does it support deterministic finalization?

1 Answers   IntraLogic,


#include <iostream> using namespace std; int main() { int a = 3; int c[5][5]; for (int x=0;x<5;x++) { for (int y=0;y<5;y++) { c[x][y] = x*y; } } cout << c[a][2]; }

1 Answers  


WRITE A SIMPLE C++ PROGRAM TO SWAP TWO NOS WITHOUT USING TEMP

2 Answers  


Is following functions are said to be overloaded? int add(int a,int b) char *add(int a,int b)

4 Answers  


What is the real time example of encapsulation?

1 Answers  


What does and I oop and sksksk mean?

1 Answers  


What is polymorphism oop?

1 Answers  


How to improve object oriented design skills?

1 Answers  


What is a template?

7 Answers  


What is polymorphism and why is it important?

1 Answers  


What are the benefits of polymorphism?

1 Answers  


What do you mean by inline function?

6 Answers  


Categories