Ongoing gaining more knowledge about OOP in PHP through laracasts.com/series/object-oriented-principles-in-php-2024-edition
π Class like a blueprint or concept of something which typically named as singular noun, such as `Student`, `TuitionFee`. It have properties and methods.
π Object is instance of a class or implementation of a blueprint.
π Constructor property promotion, less code for defining and assigning value inside constructor.
π DTO or Data Transfer Object as a class that carry data and define the structure of data that can be used as parameter.
Back