Explain the type of inheritance that php supports.- PHP supports single & multilevel inheritance.
- It does not support multiple inheritance.
- In single inheritance, by using the extend keyword a class can inherit methods and members of another base class (only one).
- PHP uses the concept of inheritance only in the object model.
- If a class extends another then the parent class is to be declared before the child class.
- The classes must be defined before they are used.
|