Posted by Michael Fesser on 07/28/07 07:01
..oO(Sanders Kaufman)
>I want to marshall the features of two different classes into one
>object.
Marshalling is something different, but anyway.
>Is there a certain way to do this in PHP?
>
>Effectively, I'm trying to do something like:
>
> class clsBread extends clsFlour, clsEggs
Multiple inheritance is not supported in PHP. But there are some
concepts to accomplish a similar effect:
* interfaces (PHP 5)
<http://www.php.net/manual/en/language.oop5.interfaces.php>
* delegation/aggregation
<http://en.wikipedia.org/wiki/Delegation_(programming)>
Micha
[Back to original message]
|