summaryrefslogtreecommitdiff
path: root/info/examples/lgc2/4-3-18.mp
blob: 064e9e731aab85aabda5d36f89b288ab90fb3666 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
% --- start of displayed preamble in the book ---
input metauml
% --- end of displayed preamble in the book ---
defaultfont:="ptmr8r";
warningcheck:=0;
beginfig(1)
Class.P("Person")()();
Class.C("Company")()();
P.e=C.w+(-50,0);
drawObjects(P,C);
draw P.e--C.w;
item.aName(iAssoc)("works for")
          (aName.s=.5[P.e,C.w]);
endfig;
end;