⭕ Overview
In this video, we'll explore the concepts of classes, interfaces, and traits in PHP. This is the first episode of the series, and I'll be discussing their behavior, characteristics, and relationships. There won't be any coding in this video, but it's essential to understand these foundational concepts before diving into practical implementation.
We'll start with an overview of classes, highlighting their key features and how they interact with other components in PHP. Although the list provided may not be exhaustive, it covers the most important aspects you need to know.
By the end of this video, you'll have a solid understanding of the theoretical background of classes, interfaces, and traits in PHP, preparing you for more advanced topics and coding exercises in future episodes.
If you find this video helpful, please give it a thumbs up, share it with your friends, and subscribe to my channel for more tutorials and insights into programming. Your support helps me create more content to assist you in your learning journey. Thank you for watching!
🟩 CLASSES
Can:
CAN have a constructor
CAN have zero or more data members and/or methods
CAN be used to instantiate objects
CAN only extend a maximum of one Class (abstract or concrete)
CAN implement many Interfaces
CAN use many Traits
Cannot:
CANNOT have abstract methods
CANNOT have nested Classes
🟩 TRAITS
Can:
CAN have a constructor
CAN have data fields
CAN have methods
CAN use many Traits
Cannot:
CANNOT extend Classes or implement Interfaces
CANNOT have abstract methods
CANNOT be used to instantiate objects
🟩 INTERFACES
Can:
CAN extend many Interfaces
CAN have only function definitions
CAN only be implemented by an abstract or concrete Class
Cannot:
CANNOT have a constructor
CANNOT have data members
CANNOT have abstract methods
CANNOT be used to instantiate objects
CANNOT extend Classes or use Traits
⭕ About me
I am a Web Instructor, and I’ve authored a textbook and some complete sets of video training courses for / learning (formerly Lynda.com) and https://www.packtpub.com.
⭕ Visit my site: https://christianhur.com
⭕ My complete online training courses:
☑️ The DOM in JavaScript, jQuery, AngularJS, and React : / the-dom-in-javascript-jquery-angularjs-and...
☑️ Building JSF Web Applications with Java EE 7: / building-jsf-web-applications-with-java-ee-7
☑️ Troubleshooting Vue.js: https://www.packtpub.com/application-...
☑️ Angular 7 New Features: https://www.packtpub.com/web-developm...
☑️ Full-Stack Web Development with Flask: https://www.packtpub.com/web-developm...
☑️ Full-Stack Web Development with Django & Angular 8: https://www.packtpub.com/web-developm...
☑️ Angular 9 New Features: https://www.packtpub.com/web-developm...
⭕ Check out my book:
Developing Business Applications for the Web: With HTML, CSS, JSP, PHP, ASP.NET, and JavaScript is available on Amazon and MC Press.
☑️ Link: https://www.mc-store.com/collections/...
On this page of the site you can watch the video online PHP Classes, Interfaces, & Traits (Ep. 1) with a duration of online in good quality, which was uploaded by the user Christian Hur 15 June 2020, share the link with friends and acquaintances, this video has already been watched 1,048 times on youtube and it was liked by 23 viewers. Enjoy your viewing!