Posted by Toke Herkild on 06/08/05 20:21
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
Navigation:
[Reply to this message]
|