Join Examsbook
852 0

Q: What is the difference between _construct() and _destruct() methods in php?

  • Show AnswerHide Answer
  • Workspace

Answer :
Explanation :

These two methods are bulid-in methods  in php. with  construct() we can overwride the parent class method. The inverse of the __construct() PHP capacity while making another class, is the __destruct() technique. The __destruct() technique will consequently keep running, after you've completed with the PHP class.

Are you sure

  Report Error

Please Enter Message
Error Reported Successfully