Extending classes



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

.