abalfazl
03-15-2005, 03:53 PM
Hello firends
In C++,We can use multiple inheritance.
But in PHP 5,A class can inherit from only one parent class.What is advantage of this?
imported__sam_
03-16-2005, 05:24 AM
In C++,We can use multiple inheritance.
But in PHP 5,A class can inherit from only one parent class.What is advantage of this?
Hello,
Multiple inheritance can cause a lot of problems. See http://ozark.hendrix.edu/~burch/csbsju/cs/340/sched/multinherit.html for a first glance on the issues. That is the reason why many modern OO languages, such as Java, C#, Ada 95 and PHP5, do not support it. There is, however, an ongoing heated debate amongst OO experts on the benefits and problems involved in multiple inheritance.
best regards
Sam