note 26157 added to keyword.extends
| From: | novaki at dcs dot vein dot hu | Date: | Sun, 20 Oct 2002 15:13:02 +0000 |
| Subject: | note 26157 added to keyword.extends | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-38325@lists.php.net to get a copy of this message | ||
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)
--
http://www.php.net/manual/en/keyword.extends.php
http://master.php.net/manage/user-notes.php?action=edit+26157
http://master.php.net/manage/user-notes.php?action=delete+26157
http://master.php.net/manage/user-notes.php?action=reject+26157