Quote:
|
Originally Posted by abalfazl
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/csbs...ltinherit.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