Extending classes
- From: Toke Herkild <toke@xxxxxxxxx>
- Date: Wed, 08 Jun 2005 19:21:38 +0200
Hi all,
When using classes/objects how do inheritance work ?
Are there some kind of overload as in pascal?
EG:
class Foo {
var $bar; function FooInit(){
$Bar[] = 1;
}
}class FooBar extends Foo {
var $Bar2; function FooInit(){
inherited FooInit();
$Bar2 = 2;
}
}Where the subclass FooInit() calls upon the superclass FooInit()?
Regards Toke Herkild
.
- Follow-Ups:
- Re: Extending classes
- From: Veikko Mäkinen
- Re: Extending classes
- Prev by Date: Re: getting the variable name in php
- Next by Date: Re: Set text on picture
- Previous by thread: dynamic usage indicator like yahoo mail
- Next by thread: Re: Extending classes
- Index(es):