Lecture overview -- Keyboard shortcut: 'u'  Previous page: The interpretation of  <kbd>self</kbd> -- Keyboard shortcut: 'p'    Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Alphabetic index  Help page about these notes  Course home    Object-oriented programming in Scheme - slide 11 : 11

A demo of virtual methods
On this page we will make two artificial classes with the purpose of demonstrating virtual methods
A base class x .
A class y that inherits from x .
A dialogue using class x and class y.
The functions new-instance and virtual-operations.
All the stuff necessary to play with x and y.
Go to exercise
Representing HTML with objects in Scheme