[Oberon] supercall in AO
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.
A = OBJECT
BEGIN END Do;
B = OBJECT(A)
PROCEDURE Do; (* overrides procedure Do *)
(* 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 *)
More information about the Oberon