What is virtual destructor? Why?
Answer Posted / riya piyush jain
In object-oriented programming, a destructor (sometimes
shortened to dtor) is a method which is automatically
invoked when the object is destroyed. Its main purpose is
to clean up and to free the resources which were acquired
by the object along its life cycle and unlink it from other
objects or resources invalidating any references in the
process. The use of destructors is key to the concept of
Resource Acquisition Is Initialization.
Is This Answer Correct ? | 4 Yes | 8 No |
Post New Answer View All Answers
What is abstraction encapsulation?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< What are the benefits of oop? What is coupling in oops? How oops is better than procedural? write string class as your own class in java without using
any built-in function What are oops functions? What is meant by multiple inheritance? Which language is pure oop? What are oops methods? What is encapsulation selenium? Why is abstraction used? What is constructor in oop? 2. Give the different notations for the class.\ How is class defined?