summaryrefslogtreecommitdiff
path: root/info/examples/lgc2/4-3-9.mp
blob: 8fd2d4c3e48dfe017f9ac3d0325e101ce6e7cf5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
% --- 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;