Web Reference, Written by , Published on Tuesday, August 14th, 2007

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.

Read the original article at Web Reference

Share this article

|
Share
Get Future Articles

Leave a Comment