Dispatching on Class T
Class T is the class of all objects
(defmethod distance ((from t) (to t))
(error " Don’t know how to compute distance"))
OR
(defmethod distance (from to)
(error " Don’t know how to compute distance"))
Previous slide
Next slide
Back to first slide
View graphic version