Constructor Function
(defun make-square (x y width)
(make-instance 'square :x x :y y :width width))
Functional interface for instance creation
Advantages
Checking of required arguments
Class name not advertised
Previous slide
Next slide
Back to first slide
View graphic version