what is use to destroy an object? illustrate.

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


Please Help Members By Posting Answers For Below Questions

What is encapsulation in oops?

538


which feature are not hold visual basic of oop?

1725


How do you achieve polymorphism?

618


Can private class be inherited?

619


What is encapsulation in ict?

608






What is overriding vs overloading?

584


What is encapsulation in oop?

609


What is polymorphism give a real life example?

561


What polymorphism means?

624


Can a varargs method be overloaded?

617


What is byval and byref? What are differences between them?

1689


What is polymorphism and why is it important?

562


What are the two different types of polymorphism?

672


What is the real time example of encapsulation?

599


Why is polymorphism important in oop?

635