PHP OOPs Concepts

Multilevel and Multiple inheritance in PHP

PHP does not support multiple inheritance. PHP supports multileve inheritance. Child class class can’t inherit by more than one parent class. But Parent class inherit the properties of prand parend class and grand child can inherit the properties of parent class.
 Multiple inheritance in PHP

This code will not work in php because PHP does not support multiple Inheritance.
Multilevel inheritance in PHP

In the given example class2 inheriting the class1 and class3 inheriting the class2. So class3 have  some properties of class2 and some properties of class1.

About the author

Anuj kumar

I'm Anuj kumar a web developer with 4+ year experience .I write blogs in my free time. I love to learn new technologies and share with others. I founded PHPGurukul in September 2015. The main aim of this website to is provide php , jquery , mysql , phpoops and other web development tutorials. I am trying best effort to make PHPGurukul useful for every single moment spend on this website. If you think this website is useful to visit please share with your friend and buddies.

Leave a Comment


Subscribe For Latest Updates