Loading…

What is inheritance in PHP? How many types of inheritance supports PHP?

Inheritance has three types, are given below.

  • Single inheritance
  • Multiple inheritance
  • Multilevel inheritance

 

But PHP supports only single inheritance, where only one class can be derived from a single parent class. We can do the same thing like multiple inheritance by using interfaces.

Suggest An Answer

No suggestions avaliable!

Latest post from PHP interview questions

Ask Question