D
Da Costa Gomez
Hi,
I was wondering whether someone could shed some light on the following.
Using inheritance in Java one can override a function f() (or is it
overload?) in the child and then do:
public f() {
super.f();
...
}
in the child to first execute the parent stuff to be followed by the
additional child stuff.
Is there a way to accomplish this in JS as well and if so how?
I've already figured out the normal inheritance bit and complete
function overriding. I'm just looking for the above case.
TIA,
Fermin DCG
I was wondering whether someone could shed some light on the following.
Using inheritance in Java one can override a function f() (or is it
overload?) in the child and then do:
public f() {
super.f();
...
}
in the child to first execute the parent stuff to be followed by the
additional child stuff.
Is there a way to accomplish this in JS as well and if so how?
I've already figured out the normal inheritance bit and complete
function overriding. I'm just looking for the above case.
TIA,
Fermin DCG