Inheritance is a mechanism in which one class acquires the property of another class. For example, a child inherits the traits of his/her parents. With inheritance, we can reuse the fields and methods of the existing class. Hence, inheritance facilitates Reusability and is an important concept of OOPs.
Types of Inheritance
There are Various types of inheritance in PHP:
1. Single Inheritance:
2. Multiple Inheritance
3. Multilevel Inheritance
4. Hierarchical Inheritance
5. Hybrid Inheritance
If you found this video valuable, give it a like.
If you know someone who needs to see it, share it.
If you have questions ask below in comment section.
Add it to a playlist if you want to watch it later.
PHP Installation : https://www.youtube.com/watch?v=JOioyXiwSlk&t=71s
PHP Datatype : https://www.youtube.com/watch?v=nJjtsvjuSpE&t=21s
PHP Variable : https://www.youtube.com/watch?v=LVNB3efc2yY
PHP Control Statement : https://www.youtube.com/watch?v=jxyRYwjx0IQ
Switch Statement: https://www.youtube.com/watch?v=2lIldpKoQ5A
PHP Loop: https://www.youtube.com/watch?v=TZj2NlZTc78&t=1s
PHP Function: https://www.youtube.com/watch?v=hhdqB8lULhA&feature=youtu.be