Go backward to Type Structure Blocks
Go up to Top
Go forward to Inheritance of Class Structures
Objects and Classes
- Object:
- Declared variable of a record-structure block.
- Centerpiece of object-oriented languages.
- Record field = object methods.
- Embedding of classes:
- class EXTENDED-STACK =
begin
var M: PERSONAL-STACK,
var N: newint
in record
...
proc PUSH-EXTENDED(X: intexp) =
call
M.PUSH(X)
...
end end
Forwarding of method invocations becomes tiresome!
Wolfgang.Schreiner@risc.uni-linz.ac.at
Id: qualification.tex,v 1.2 1996/05/02 11:53:49 schreine Exp schreine