Multiple inheritence?
| From: | Ilja Hehenkamp | Date: | Wed, 08 Nov 2000 00:18:11 +0000 |
| Subject: | Multiple inheritence? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-24227@lists.php.net to get a copy of this message | ||
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"