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

CodeSignal

Object-Oriented Programming with PHP

via CodeSignal

Overview

Discover the power of Object-Oriented Programming (OOP) in PHP through practical, easy-to-understand examples. This course guides you from creating simple classes and objects to mastering advanced OOP techniques like encapsulation, getters and setters, and method overriding. Whether you're a beginner or looking to refine your skills, this course offers a comprehensive path to learn OOP in PHP.

Syllabus

Your First Spacecraft Class

  • Run to Define Your First Class
  • Update Class and Object Names
  • Fix the Class Declaration
  • Complete the Missing Class Code
  • Define and Inspect a Class

Powering Up with Attributes and Methods

  • Power Up with Attributes and Methods
  • Modify the Method
  • Fix the Spacecraft Launch Code
  • Complete the Spacecraft Class
  • Building the Spacecraft Class

Managing Visibility with Getters and Setters

  • Managing Spacecraft Properties
  • Refactor for Secret Code Access
  • Fixing Visibility Bugs in PHP
  • Managing Access with Getters and Setters
  • Create a Secure Spacecraft Class

Initializing Objects with Constructors

  • Running Constructors in PHP
  • Set Default Values in Constructors
  • Fix the Spacecraft Constructor
  • Add a Constructor to Spacecraft
  • Build a Robot Class

Expanding Your Fleet with Inheritance

  • Understanding Inheritance in PHP
  • Preventing Inheritance with final Keyword
  • Fix the Inheritance Bug
  • Complete the Rocket Class
  • Building the CargoShip Class

Method Overriding in Child Classes

  • Method Overriding in Action
  • Prevent Method Overriding in PHP
  • Fixing Visibility in Method Overriding
  • Add Missing Parts for Shuttle
  • Master Method Overriding in PHP

Reviews

Start your review of Object-Oriented Programming with PHP

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.