What is the purpose of destructor ?
Answers were Sorted based on User's Feedback
Answer / 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 |
What are getters and setters and why are they important?
Is php dying 2018?
How can we set and destroy the cookie in php?
How to add comments in php?
what are the differents between 'action' and 'target' in form tag?
what is mean php ? is it designingtool or language? how ill create website using by php?
Is runtime polymorphism overriding?
If the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?
Is server side a session?
Explain soundex() and metaphone().
What is php constructor?
is that "enumerated array" equal to "numeric array"?