Answer Posted / varun
Normally you never explicitly call
the destructor, it is automatically called by the C++ frame
work when the object is deleted/goes out of scope.
Therefore you would not need to overload the destructor
because the frame work always calls the default destructor.
Additionally the C++ standard defines that a conforming
compiler only allows for 1 destructor per class.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is oops with example?
#include
What is the real time example of encapsulation?
What is new keyword in oops?
What is encapsulation in oop?
What do you mean by abstraction?
What is polymorphism and its types?
Is this job good for future? can do this job post grduate student?
Can we create object of interface?
Why is oop better than procedural?
Why do while loop is used?
What is the full form of oops?
What is the important feature of inheritance?
What is protected in oop?
What is difference between pop and oop?