Next:
Introduction
Up:
Typing in object-oriented languages:
Previous:
Contents
List of Figures
A record
, and
masquerading as an element of type
.
A function
, and
masquerading as
.
A variable
, and
masquerading as
.
A Point class.
A Colorpoint subclass
Typing DeepClone methods in subclasses.
Node class
Changing types of methods in subclasses.
Circle and ColorCircle classes with more flexible types.
Node class with
MyType
.
Doubly-linked node class.
Node class with
MyType
.
Procedure illustrating that subclasses need not generate subtypes.
List type function.
The type
.
Binary search tree type functions.
BinSearchTree classes.
Polymorphic Circle classes.
Animal and herbivore classes
Polymorphic animal and herbivore classes
A type safe rewrite of
using match-bounded polymorphism.
Kim Bruce
10/28/1998