UML建模示例(1) a import java. awt. Graphics class HelloWorld extends java applet applet public void paint(Graphics g)i g drawString(Hello, World! ,10, 10) ■ Helloworld抽象模型 HelloWorld drawString paint() He11o,Word!",10,10)UML建模示例(1) ◼ import java.awt.Graphics; class HelloWorld extends java.applet.Applet { public void paint (Graphics g) { g.drawString("Hello, World!", 10,10); } } ◼ HelloWorld抽象模型