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
Describe these concepts: Polymorphism, Inheritance and Abstraction.
Is abstract thinking intelligence?
What is debug class?what is trace class? What differences are between them? With examples.
Why polymorphism is used in oops?
Which method cannot be overridden?
what is the drawback of classical methods in oops?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
What makes a language oop?
write knight tour problem which is present in datastructure
what is graphics
Why multiple inheritance is not allowed?
What is the purpose of polymorphism?
Why is abstraction used?
can inline function declare in private part of class?
What is the purpose of enum?