Blog

A Brief Explanation of Class Inheritance in PHP
Posted on June 23, 2015 in OOP, PHP by Matt Jennings

In PHP, an inherited class (also called an extended class or subclass) usually gets all of the parent class’s methods and/or properties. Below is an example:

 

Leave a Reply

To Top ↑