Grow your YouTube channel like a PRO with a free tool
Get Free YouTube Subscribers, Views and Likes

When to use Traits Interfaces and Abstract Classes in PHP

Follow
Andrew Schmelyun

If you've been working in PHP for at least a little while, chances are you've come across a Trait, Interface, or Abstract Class. What are they? How can I use them effectively?

Let's dive in and discover a couple of use cases for each of them, and I'll explain some of their differences (and similarities).

0:00 TL;DR
0:47 Intro
1:25 Traits
5:48 Interfaces
10:27 Abstract Classes
14:49 All Done

Send me new video ideas and vote on what's coming next: https://suggest.gg/aschmelyun

Follow me on Twitter!   / aschmelyun  

Join my newsletter, where I send out new information about twice a month in the PHP, JavaScript, and Docker realms: https://aschmelyun.substack.com

posted by vacation3u