Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Treehouse

Extending Object-Oriented PHP Course (How To)

via Treehouse

Overview

You should already be familiar with writing simple classes in PHP. In this course you will learn how extend the use of these classes to reuse code.

What you'll learn

  • Inheritance
  • Extending a Class
  • Using Multiple Classes
  • Scope

Syllabus

Inheritance

In this stage we'll look at how we can inherit from other classes and modify their properties and methods to suit our needs.

Chevron 11 steps
  • Building Relationships

    3:32

  • Extending a Class

    3:03

  • Extending a Class

    5 questions

  • Using Multiple Classes

    3:13

  • Adding Child Features

    5:18

  • Override and Protect Scope

    3:12

  • Extend a Class

    3 objectives

  • Extending a Method

    4:27

  • Method Scope

    3:12

  • Extending the Display

    7:40

  • Review Parent/Child

    10 questions

Extending the Family

Extend the family of classes even farther by adding another child to create a sibling relationship and extending a child to create a grandchild.

Chevron 7 steps
  • Siblings and Grandchildren

    4:12

  • A Second Child

    3:18

  • Sibling Relationships

    2 objectives

  • Extending a Child

    6:12

  • Grandchild Relationships

    1 objective

  • Extending the Project

    1:09

  • Review Inheritance

    5 questions

Reviews

Start your review of Extending Object-Oriented PHP Course (How To)

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.