#20000 [Opn->]: Classes: extend from more than one parent

From: Date: Sun, 20 Oct 2002 14:38:21 +0000
Subject: #20000 [Opn->]: Classes: extend from more than one parent
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-22883@lists.php.net to get a copy of this message
ID: 20000 Updated by: derick@php.net Reported By: novaki@dcs.vein.hu -Status: Open +Status: Won\'t fix Bug Type: Feature/Change Request Operating System: All PHP Version: 4.2.3 New Comment: Congratulations with the 20000th entry :) Anyway, PHP has aggregation for this: http://php.net/aggregate , and this is the method we chose to implement things like 'multiple inheritence'. Derick Previous Comments: ------------------------------------------------------------------------ [2002-10-20 09:33:18] novaki@dcs.vein.hu In most of the languages child classes can inherit from more than one parent classes (C++, Java). In PHP it is not impossible at the moment, as far as I know. A proposed syntax would be (as in other languages): class childClass extends parClass1, parClass2 { } Obviously, a number of questions may occur, for example, constructors cannot be called automatically in this case, so I suppose this is not a trivial problem. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20000&edit=1

« previous php.bugs (#22883) next »