diff options
Diffstat (limited to 'info/examples/lgc2/4-3-9.mp')
-rw-r--r-- | info/examples/lgc2/4-3-9.mp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/info/examples/lgc2/4-3-9.mp b/info/examples/lgc2/4-3-9.mp new file mode 100644 index 0000000000..8fd2d4c3e4 --- /dev/null +++ b/info/examples/lgc2/4-3-9.mp @@ -0,0 +1,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; |