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 |
When do sessions end?
Which is better php praogramming or cad/cam scope wise and also salaray wise?
How is it possible to return a value from a function?
Is php procedural or oop?
What is mem_cache ? How do you put a database query into that ?
How to delete a file from the system?
Write down the benefits of php7?
What are classes in php?
Why php is sometimes called as embedded scripting language?
In php, objects are they passed by value or by reference?
Why do we use javascript in php?
Is there any function to find repeated value in an array? What is w2 standard