Practice It: PHP Classes and Objects

Practice It: PHP Classes and Objects

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 1h 12m | 182 MB

If you’re trying to become a more nuanced, successful PHP developer, you can’t overstate the value of expertise in object-oriented programming. That’s because PHP frameworks like Drupal, Symphony, and Laravel all require the same foundational programming skills. In this course, instructor Tammy Robinson gives you a practical overview of working with PHP classes and objects, two of the most important extensible concepts of procedural programming. Learn about creating classes and class instances, also known as objects, exploring a wide range of different access types, properties, and methods. Along the way, Tammy offers tips on using operators, constructors, inheritance, abstract classes, interfaces, and traits.

This course is integrated with GitHub Codespaces, an instant cloud developer environment that offers all the functionality of your favorite IDE without the need for any local machine setup. With GitHub Codespaces, you can get hands-on practice from any machine, at any time—all while using a tool that you’ll likely encounter in the workplace. Check out the “Using GitHub Codespaces with this course” video to learn how to get started.

Table of Contents

1 Become a successful PHP developer
2 What you should know
3 Using GitHub Codespaces with this course

Objects and Classes
4 Class definitions
5 Try it Defining a class
6 Check it Defining a class
7 Creating class instances
8 Try it Creating an object
9 Check it Creating an object

Working with Object and Class Data
10 Access operators and modifiers
11 Try it Initialize object data and behavior
12 Check it Initialize object data and behavior
13 Using constructors
14 Try it Refined object creation
15 Check it Refined object creation

Extending Functionality Using Composition and Inheritance
16 Inheritance
17 Try it Create a child class
18 Check it Create a child class
19 Sharing rules and behaviors
20 Try it Choose your own adventure
21 Check it Choose your own adventure

22 Learning more about PHP