[Oberon] supercall in AO
Thomas Frey
thomas.frey at alumni.ethz.ch
Sat Oct 28 03:10:34 MEST 2006
> Seems that an "overridden method" is one which
> is redefined in an extended type. Correct?
>
> And what is a supercall?
A call to the "previous definition" of a method.
E.g.
A = OBJECT
PROCEDURE Do;
BEGIN END Do;
END A;
B = OBJECT(A)
PROCEDURE Do; (* overrides procedure Do *)
BEGIN
(* Do; (* would be a recursive call of Do *) *)
Do^; (* re-uses the previous definition of Do in the "super
object class" (A in this case) and is called a supercall *)
END B;
--Thomas
More information about the Oberon
mailing list