OOP: Composition & Inheritance in PHP

Inheritance is one of the primary tenets of object-oriented programming languages, but each language implements it at least slightly differently. I’m coming from a background in Python, and it took me a bit to understand the different ways objects can extend or inherit behavior in PHP. Here is what I have learned!

Extends

Senior Software Engineer | www.adriennedomingus.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Inserting an iorad into Google Classroom

POWER BI —Direct Query on Clustered Columnstore Index

Unraveling Title Insanity: 59, L5, Senior, Staff, Principal, and Gandalf

Simplify Document Management with AssetSonar’s Microsoft OneDrive Integration

Statically-typed JSON payload in Swift

First Contribution in UET Peshawar Github

Packet Analysis Using Wireshark

Moog Mother-32 Block Diagram

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Adrienne Domingus

Adrienne Domingus

Senior Software Engineer | www.adriennedomingus.com

More from Medium

How To Integrate Microservices

Create a script to compress folders in ZIP with PHP

Docker Template For PHP Explained

Solid PHP — SOLID principles in PHP | Accesto Blog