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 are the two different types of polymorphism?
What is property in oops?
What is destructor in oop?
What are objects in oop?
How to call a non virtual function in the derived class by using base class pointer
What is the renewal class?
What is for loop and its syntax?
I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
What is constructor overloading in oop?
Which is not an object oriented programming language?
What is the purpose of polymorphism?
What is the difference between a mixin and inheritance?
What is advantage of inheritance?
What is the real time example of encapsulation?