13: Interfaces in OOP PHP | Interfaces Explained | Object Oriented PHP Tutorial | PHP Tutorial

preview_player
Показать описание
In this OOP PHP tutorial, I will let you know about Interfaces in OOP PHP. Interfaces in PHP are used to group together classes and give them a set of behaviours to follow, which ensures that there is more structure in your classes.

➤ MEET OTHER AWESOME PEOPLE!

FollowAndrew
With over 20 years experience, Andrew is creating web & front-end design tutorial videos!

And a special thanks to Derek and Taher Bannour who signed up to my $20 tier on Patreon just because they wanted to see the channel succeed!

➤ GET ACCESS TO MY LESSON MATERIAL HERE!

First of all, thank you for all the support you have given me!

I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!

I am now using Patreon to share improved and updated lesson material, and for a small fee you can access all the material. I have worked hard, and done my best to help you understand what I teach.

I hope you will find it helpful :)

Рекомендации по теме
Комментарии
Автор

You always find ways to make people smile whilst teaching a valuable lesson. That typo fix was simply epic 😁

kristapsvecvagars
Автор

Been using php for years. Never understood the whole interface business. Now in 20 minutes understand it and now working on a way how to implement it in my current project (where it will solve quite a few problems).

mrpddnos
Автор

I never thought of using interfaces for type definition. It's genius. Thank you!

lpanebr
Автор

Thanks man. I was failing in understanding why the hell everybody says Interfaces are so powerful and give flexibility to your code. Yeah, they spit those words but they never tell you why, even worst, they just entangle with a lot of technical jargon speaking about things that implement a dependency of an object and blah blah blah (Which can be specially difficult for me because english is my second language and tutorials in spanish are not always very good). Finally someone explain it in plain words, thanks again. I'm guessing this is not the only thing you can do with Interfaces, but I'll keep reasearching and thanks to you I can understand things better now.

laloptk
Автор

This guy explains way way more better than my teacher in college.

karljohnhonrado
Автор

Okay, I watched the whole PHP Series, I am so glad I found you! Really good job on explaining everything in such a simple way and showcasing some usages for everything :)!

BaneZr
Автор

your examples are one of the few that actually make sense and click for me, ive watched tons of youtube videos and took alot of online courses and no one comes close to how well you explain things and how well your examples are done and explained

trevormoore
Автор

This video was pure perfection, thanks so much for the clear explanation about why we use interfaces. I am trying to learn OOP PHP in order to use Laravel and this series is explaining so much

Bonafide
Автор

Sometimes after watching any video, the best way to consolidate the learning process is to peruse the comment section and listen to other people thought patterns. It is very enlightening, and I give kudos to the video creator and awesome commenters in the comment section. Very educative content, and I am really impress. Thank you

debikadminconsult
Автор

I think the paymentProcess() should also be defined in the PaymentInterface interface else the entire code is gonna generate an error while trying to look for it in the BuyProduct Class

ollaray
Автор

You're one of the best teachers. And you're also very likable. Thank you very much for all your hard work. The bell does indeed... light up. 😂👍🏼

PorgyGeorgy
Автор

Best explanation of interfaces. I have tried to understand the use of them for some time. But this made it crystal clear

kriba
Автор

I've never grasped the need for interfaces. I've always felt that I could simply throw them out and the code would still work. This is the first and best explanation of interfaces I have seen. Finally that light is starting to shine in my head. Thank you very much for this lesson. I will be going over your other tutorials and hopefully implement what I've learned in future projects.

OcenaStrex
Автор

The most thorough explanations of PHP OOP that I have found yet! Thank you so much. (subscribed)👍

JeremyMecham
Автор

Thank you, I could never understand Interfaces until now. To simplify I would just say it's a good way of implementing inheritance for multiple classes, usually you can only inherit one class at a time.

BillClinton
Автор

This is the first time someone explained interfaces in a way that made sense. Using payment methods was a perfect example, IMO.

tamisweitzer
Автор

You did it :)
I have been watching multiple videos on Youtube from many so-called tech gurus for the last 2 hours just to understand why should use interface in my code but finally, I got at least one reason from this video.

mastammworld
Автор

Extremely well done explanation! I really appreciate your style - showing / explaining while the classes are created an evolves into implementing the interfaces
Never saw/heard a better explanation.
13 on a 10 scale!

Infinitesap
Автор

Well done for your work!! 👏 Honestly, the best explanation I could see/hear so far. Finally, I found someone to explains interfaces the right way: What are the interfaces? Where to use them? and Why we use them?. Thank you, Keep up the good work! 💯

oanacristea
Автор

I like how you corrected your typo amazing editing skills, great tutorial by the way.

desertmoon_cho