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
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