When to use Traits, Interfaces, and Abstract Classes in PHP

Published: 25 August 2023
on channel: Andrew Schmelyun
21,094
1k

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


Watch video When to use Traits, Interfaces, and Abstract Classes in PHP online without registration, duration hours minute second in high quality. This video was added by user Andrew Schmelyun 25 August 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 21,094 once and liked it 1 thousand people.