In the first of this two-part video series introducing PHP’s object-oriented fundamentals, you learned how to create and interact with a PHP class, which might be used as the basis for a video game character. Among other features, the video demonstrated object instantiation, attribute scope, class methods, and object initialization using class constructors.
This installment explores some of PHP’s intermediate object-oriented features, introducing the concept of creating class hierarchies through inheritance, class abstraction, and managing arrays of objects.