How To: Use composition instead of inheritance in PHP

Use composition instead of inheritance in PHP

While inheritance is very useful within PHP and OOP, it is notably better to favor composition over inheritance. In this video walkthrough, JREAMdesign demonstrates the composition concept with interrelated functions, and also shows a way of logically organizing the resultant files.

Be the First to Comment

Share Your Thoughts

  • Hot
  • Latest