| Inheritance | Method Overriding |
| A child class uses properties and methods of a parent class. | A child class changes the method of a parent class. |
| To reuse code from the parent class. | To modify the behavior of a parent method. |
×
PHP5 Tutorial
- What is OOP
- PHP Classes and Objects
- Constructor
- Destructor
- Access Modifiers
- Constants
- Magic Methods
- Encapsulation
- Abstract Class
- Interfaces in PHP
- PHP traits
- Abstract Class vs Interface
Inheritance
Polymorphism
PHP5 Tutorial
- What is OOP
- PHP Classes and Objects
- Constructor
- Destructor
- Access Modifiers
- Constants
- Magic Methods
- Encapsulation
- Abstract Class
- Interfaces in PHP
- PHP traits
- Abstract Class vs Interface