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 Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
What do you mean by Encapsulation?
What are classes oop?
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?
Why is abstraction used?
what is the drawback of classical methods in oops?
Which is not an object oriented programming language?
How oops is better than procedural?
How many human genes are polymorphic?
Where is pseudocode used?
What is difference between polymorphism and inheritance?
Why polymorphism is used in oops?
Write a program to reverse a string using recursive function?
Templates mean
What is oops concept with example?