note 26157 deleted from keyword.extends by danbrown
| From: | danbrown@php.net | Date: | Wed, 17 Jun 2009 19:06:08 +0000 |
| Subject: | note 26157 deleted from keyword.extends by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-157034@lists.php.net to get a copy of this message | ||
Note Submitter: novaki at dcs dot vein dot hu
----
inheritance from multiple parent classes:
// won't work
class myChildClass extends pClass1, pClass2 {
}
PHP uses aggregation for inheriting from multiple parents, which I think is a bit more complex. See
the aggregate function.
(my personal oppinion is that the first method of multiple inheritance should also be imlemented,
but I got the answer that it won't be fixed)