What is the purpose of destructor ?

Answer Posted / sunil kumar

A destructor is used to destroy the objects that have been
created earlier.Destructor is a member function whose name
is the same as the class name but is preceded by tilde sign.
It never takes any argument nor it returns any value.It`ll
be invoked implicitly by the compiler upon exit from the
program to clean up storage that is no longer accessible.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I run a php program in dreamweaver?

532


What is a stored procedure in mysql?

531


What are the rules to declare a php variables?

517


How to call a php function from html button?

611


Differentiate echo vs. Print statement.

537






Name and explain five of the PHP error constants?

514


Explain what is the use of "echo" in php?

554


How to repeat a string to a specific number of times in php?

524


What is final class and final method?

565


Is apache needed for php?

502


What is the function used to change the root directory in PHP?

555


How do I display php errors?

513


Is time a dependent variable?

516


What is the purpose of basename() function in PHP?

600


how to open & closing opening period in fico

1215