Class Inheritance with PHP

Wednesday Sep 12th 2007 by DatabaseJournal.com Staff
Share:

There are many benefits of inheritance with PHP, the most common is simplifying and reducing instances of redundant code. In this article you'll work with PHP 5 and Object Oriented Programming (OOP) to create a scalable application.

[From WebReference]

There are many benefits of inheritance with PHP, the most common is simplifying and reducing instances of redundant code. Class inheritance may sound complicated, but think of it this way. Consider a tree. A tree is made up of many parts, such as the roots that reside in the ground, the trunk, bark, branches, leaves, etc. Essentially inheritance is a connection between a child and its parent.

The article continues at http://www.webreference.com/programming/php/class_inherit/index.html

Share:
Home
Mobile Site | Full Site
Copyright 2017 © QuinStreet Inc. All Rights Reserved