- Using inheritance you can access property or methods of one class to another class.
- In PHP multilevel inheritance is possible but multiple inheritance is not possible. In simplified terms in php child class can not inherit more than one parent class.
- But hierarchical inheritance possible, parent access grand parent property and grand child access property of parent class.
There are 3 types of visibility to control methos and variable in php.
Object is instance of class, to use methods and variable of class out side the class.