Get Started
966

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

  • Show 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.

The Most Comprehensive Exam Preparation Platform

Get the Examsbook Prep App Today