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.

Get the Gadget Hacks Daily

Don't miss any of the cool things your phone can do

Be the First to Comment

Share Your Thoughts

  • Hot
  • Latest