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
write a programe to calculate the simple intrest and compund intrest using by function overlading
Why is destructor used?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
What is meant by multiple inheritance?
What is purpose of inheritance?
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
#include
What is abstraction example?
What is pure oop?
What is ambiguity in inheritance?
Can an interface inherit a class?
Explain virtual inheritance?
What is and I oop mean?
What is oops concept with example?
Can destructor be overloaded?