% --- start of displayed preamble in the book --- input metauml % --- end of displayed preamble in the book --- defaultfont:="ptmr8r"; warningcheck:=0; beginfig(1) Class.A("Point") ("#x: int", "#y: int") ("+set(x:int, y:int)", "+getX():int", "+getY():int", "-debug():void"); A.nw=(0,0); drawObject(A); endfig; end;