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 components of marker interface?
when to use 'mutable' keyword and when to use 'const cast' in c++
Can a varargs method be overloaded?
What is polymorphism and types?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
What is oops?what is its use in software engineering?
what is the drawback of classical methods in oops?
Why is abstraction used?
What is abstraction encapsulation?
What is encapsulation process?
What is class and object with example?
Why is object oriented programming so hard?
Which method cannot be overridden?
Is abstract thinking intelligence?
What is ambiguity in inheritance?