Reply to Re: OOP Marshalling(?) in PHP

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация