Home
PHP

How to Use composition instead of inheritance in PHP

Jan 12, 2011 12:13 AM
634754950907996821.jpg

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.

Related Articles

How to Retrieve GPS Data from JPG Image Files Using Exif and PHP

How to Use a URI to Test Functions with a Test Script in Php

Comments

No Comments Exist

Be the first, drop a comment!