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 do you mean by variable?
What is the renewal class?
What is abstraction and encapsulation?
What is object in oop with example?
How do you use inheritance in unity?
What is the purpose of polymorphism?
What is difference between inheritance and polymorphism?
Why do we use encapsulation in oops?
write a programe to calculate the simple intrest and compund intrest using by function overlading
Can main method override?
given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy
What is a function in oop?
What is polymorphism oop?
Is html an oop?
which feature are not hold visual basic of oop?