:INITARG Slot Option
Specifies keyword to use with make-instance
(defclass rectangle (square)
((height :initform 0 :initarg :height
:accessor height)))
> (setq yet-another (make-instance ‘rectangle
:height 14))
#<RECTANGLE @ #x6734a9>
> (height yet-another)
14
Previous slide
Next slide
Back to first slide
View graphic version