PHP Classes

Multiple Inheritance

Recommend this page to a friend!

      PHP Classes blog  >  Upcoming PHP 5.3 feat...  >  All threads  >  Multiple Inheritance  >  (Un) Subscribe thread alerts  
Subject:Multiple Inheritance
Summary:Inheritance
Messages:3
Author:Sushant
Date:2009-04-29 02:50:33
Update:2009-04-29 03:51:49
 

  1. Multiple Inheritance   Reply   Report abuse  
Picture of Sushant Sushant - 2009-04-29 03:08:13
HUH!
I read that php still do not support the Multiple Inheritance.
And the industry is still using PHP without this Inheritance.

As per web project designs.. there are low number of requirements where actually the Multiple Inheritance is used.


But as to stand in the the lane of C#, java, etc... php need to have that feature.


  2. Re: Multiple Inheritance   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2009-04-29 03:37:06 - In reply to message 1 from Sushant
PHP supports inheritance since PHP 3. Neither PHP, nor Java, nor C# support multiple inheritance. PHP 5 supports interfaces like Java and C#. That addresses most purposes developers would want to use multiple inheritance.

C++ supports multiple inheritance but it is confusing and often you need to solve conflicts to sort from which class functions or variables are inherited.

  3. Re: Multiple Inheritance   Reply   Report abuse  
Picture of Sushant Sushant - 2009-04-29 03:51:49 - In reply to message 2 from Manuel Lemos
Oh!
Thanks for Knowledge ...
I was not sure regarding Java and C#.


Thanks