Re: Multiple inheritence?

From: Date: Thu, 09 Nov 2000 00:36:09 +0000
Subject: Re: Multiple inheritence?
Groups: php.general 
Request: Send a blank email to php-general+get-24228@lists.php.net to get a copy of this message
This isn't multiple inheritence. Multiple inheritance would be: class d extends a,c { function jank() { $this->mekker(); } } -- -Gfunk007 "I like walking, but hiking is walking in areas with insects and steep inclines while carrying dried fruit, and I'm not down with that." :::: visit me - http://www.gfunk007.com/ :::: ICQ 74477509 :::: "Ilja Hehenkamp" <imhehenkamp@chello.nl> wrote in message news:8ua60o$b8f$1@toye.p.sourceforge.net... > In PHP 3 multiple inheritence wasn't suported, but it seems supported in > version 4 allthough the manual says it's not... > > Can anyone confirm this? > > eg: > > // start code > > class a > { function mooo() > { print "mooo"; > } > } > > class b extends a > { function blaat() > { $this->mooo(); > } > } > > class c extends b > { function mekker() > { $this->blaat(); > } > } > > class d extends c > { function jank() > { $this->mekker(); > } > } > > $d = new d(); > $d->jank(); > > // end code > > results in "mooo" > > > > > -- > 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 (#24228) next »