Object-oriented programming with PHP
The course begins with the basics of OOP in PHP. Participants will be introduced to the object-oriented mindset and learn how OOP helps to make code more reusable, modular and maintainable.
An essential part of the course is the creation and use of classes and objects. Participants will learn how to define classes and instantiate objects to represent real-world entities and their relationships in code.
Another focus is on the concepts of inheritance, interfaces and traits. Participants will learn how inheritance is used to transfer properties and methods from one class to another, increasing the reusability and extensibility of the code. They will also learn how interfaces are used to define common interfaces for classes and how traits are used to include reusable code in multiple classes.
Finally, access control and visibility are covered. Students will learn the importance of access modifiers (public, private, protected) and understand how they control visibility and access to properties and methods inside and outside of classes.