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
What is byval and byref? What are differences between them?
Why do we use oops?
What is oops with example?
Get me an image implementation program.
What is methods in oop?
What are classes oop?
Whats oop mean?
What is difference between oop and pop?
What is class and object with example?
What is the point of polymorphism?
What is balance factor?
What is for loop and its syntax?
Prepare me a program for the animation of train
What is stream in oop?
What is the important feature of inheritance?