A demo of virtual methods (original) (raw)

A demo of virtual methods

On this page we will make two artificial classes with the purpose of demonstrating virtual methods

class-x-y-all A base class x .
class-x-y-all A class y that inherits from x .
class-x-y-dialogue A dialogue using class x and class y.
class-x-y-all The functions new-instance and virtual-operations.
class-x-y-all All the stuff necessary to play with x and y.
Go to exercise Representing HTML with objects in Scheme