Login   Register  
PHP Classes

Multiple Inheritance

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

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

  1. Multiple Inheritance   Reply  
Picture of Sushant
2009-04-29 03:08:13
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  
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  
Picture of Sushant
2009-04-29 03:51:49 - In reply to message 2 from Manuel Lemos
Thanks for Knowledge ...
I was not sure regarding Java and C#.