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
What is the difference between characters 34 and x34?
What does the expression exception::__tostring means?
What is the difference between $name and $$name?
Is apache needed for php?
How the values are ordered in an array?
Explain the difference between require() and require_once()?
Is php a dying language?
What are magic constants in php?
What is the difference between file_get_contents() and file_put_contents() in php?
Should I learn php before wordpress?
What software is required for php?
Is variable name casesensitive in php?
What is the importance of parser in php?
What is a controller in php?
How do I escape data before storing it into the database?