Alternate approach
Use methods instead of shared slots
(defmethod number-of-sides ((part triangle)) 3)
Previous slide
Next slide
Back to first slide
View graphic version