Object-Oriented PHP: Working with Inheritance

Post

1 comment   |   PHP


Learn how inheritance works in PHP. This tutorial explores the concept of parent and child classes; overriding methods; final classes; abstract classes, and interfaces. Example code included.

We’ll look at the following topics in this article:

  • The concept of inheritance, and why it’s so useful
  • How one PHP class can inherit from another
  • How a child class can override some of the functionality of its parent
  • Working with final classes and methods
  • Using abstract classes, and
  • Working with interfaces.

Read full article

Leave a Reply

  1. Object-Oriented PHP: Working with Inheritance | sqlphphelp06-03-11