% --- start of displayed preamble in the book --- input metauml % --- end of displayed preamble in the book --- defaultfont:="ptmr8r"; warningcheck:=0; beginfig(1) Class.A("MyClass") ("attr1: int", "attr2: int") ("method1(): void", "method2(): void"); A.nw=(0,0); drawObject(A); endfig; end;