Friday, June 26, 2015

Bangla Object Oriented Programming PHP Part- 04 (Destructor)

The Destructor Method is created with the __destruct() name. It's the opposite of __construct(). You have seen that the __construct() method is automatically invoked when an object is instantiated. The __destruct() method is automatically invoked just before the object is removed from memory ( with unset($object) ). This method is useful when you want to perform any last-minute actions (such as saving or printing some data when it is deleted).

How to practice tutorials…

  • Make a team with your friends (Member should be 4/5).
  • Start to practice one tutorial series along with them.
  • Don’t try to collect source code. Type the code while watching the tutorial.
  • If you face any problem, post the question in the Forum with the error codes.
  • Share that question Link with your friends or team members to solve quickly.
  • Discuss the problem in the Forum along with others - Video Guidelines.