Re: CLASSES AND OBJECTS..

From: Date: Sat, 14 Apr 2001 13:13:41 +0000
Subject: Re: CLASSES AND OBJECTS..
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-48538@lists.php.net to get a copy of this message
Nope, I'm afraid not. Currently PHP will support single level inheritance only. So A can extend B, but C cannot extend B. You will need to create a class of B to extend it with C. I suppose PHP may one day support it, but I am guessing that the Zend API can't currently handle it. I think it will need to be retooled. Sounds like a nice thing to shoot for for PHP5, perhaps? -- Plutarck Should be working on something... ...but forgot what it was. ""alberto"" <alberto@solonline.it> wrote in message news:9b9eu7$s6n$1@toye.p.sourceforge.net... > Anyone know if one day PHP will support multiple inheritance? > I think it's very important... > > For example, will PHP support this code: > > class A extends B, extends C { > .... > } > > where B and C are classes? > > Thanks! > Alberto > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#48538) next »