Answer Posted / sumeet sharma
Simple a destructor function is used for it.
it takes the resources acquired by the object.
it is called when the object goes "out of scope"
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is stream in oop?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
What is overloading in oop?
What is oops in simple words?
What is new keyword in oops?
What is an interface in oop?
Can a destructor be called directly?
Can private class be inherited?
Why is object oriented programming so hard?
Why do while loop is used?
How Do you Code Composition and Aggregation in C++ ?
What is abstraction encapsulation?
What is object in oop?
What is coupling in oop?
Can we create object of interface?