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
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
What is destructor example?
What are the 4 pillars of oop?
What exactly is polymorphism?
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 do you mean by overloading?
Which is not an object oriented programming language?
What are properties in oop?
what type of questions
What is inheritance and how many types of inheritance?
What is polymorphism give a real life example?
What is the point of oop?
What is basic concept of oop?
Who invented oop?
What is purpose of inheritance?