Answer Posted / ramakant
Normally (in fact almost always) 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 ? | 21 Yes | 2 No |
Post New Answer View All Answers
What is encapsulation with example?
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
Can bst contain duplicates?
What is for loop and its syntax?
What is advantage of inheritance?
Is abstract thinking intelligence?
What is static modifier?
What is encapsulation in ict?
What are the 3 pillars of oop?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
What is encapsulation oop?
What are the benefits of interface?
What is multilevel inheritance explain with example?
How can you overcome the diamond problem in inheritance?
What is the difference between static polymorphism and dynamic polymorphism?