Answer Posted / hemlata selokar
At the time of inheritance, when we are deleting the object
of derived class with the help of base class pointer that
time virtual destructors are used... After making base class
destructor as virtual, the derived class destructor is
called first followed by base class destructor...With the
help of this proper sequence is maintained and helps in
proper execution.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why oops is important?
hi all..i want to know oops concepts clearly can any1 explain??
What is the main purpose of inheritance law?
What is the diamond problem in inheritance?
What does sksksk mean in text slang?
which feature are not hold visual basic of oop?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
What is polymorphism and why is it important?
What is encapsulation in oops?
What is this pointer in oop?
What is the difference between a mixin and inheritance?
What is overriding in oop?
Why is there no multiple inheritance?
What is coupling in oops?
What is coupling in oop?