Re: PHP Classes For Beginners inheritance
Probably the greatest feature of the PHP OOP model is Inheritance. Inheritance is the ability of PHP to extend classes (child classes) that inherit the characteristics of the parent class. The resulting object of an extend class has all the characteristics of the parent class, plus whatever is in the new child, or extended class.
The most common is simplifying and reducing instances of redundant code that is code reusability.
__________________ Thanks & Regards, Jegan CBK "We will either find a way, or make one!” |