Smalltalk Example

Here is an example, once again taken from the Smalltalk class hierarchy. The code shown here occurs in class Magnitude. Recalling the earlier subclasses, and the various different definitions of the less than operator, we see that this one function can be used to

There is one function, but a large number of different uses, all depending upon the argument types.
[audio] [real] Text to accompany slide20, in Chapter 14 of An Introduction to Object-Oriented Programming