PHP Object Oriented Programming rewiev
- Private (properties/methods) - can be accessed in $this class only, cannot be accessed in child classes, cannot be accessed off object instances.
- Protected - can be accessed in $this class and subclasses only, cannot be accessed off object instances everywhere.
- Public - can be accessed from everywhere.
The functionalites are defined in one place and not in multiple spaces. Functionalities are defined in logical sapces, where the data is kept. Data inside our object con't be modified unexpectedly by external code in a completly differenr part of our program. * setter * getter
The process of hiding the internal data and implementation from the outside world
- __construct
- __destrict
- __get
- __toString
Special kind of class methods, that are executed by php in "background"
Youtube Link - Object Oriented PHP (1:42:00)