GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — JavaCodeAcc/src/designpattern/visitor/VisitorClient.java at master · echoTheLiar/JavaCodeAcc Expand file tree/ Copy pathVisitorClient.javaMore file actions 23 lines (18 loc) · 430 Bytes / Copy pathVisitorClient.javaFile metadata and controls23 lines (18 loc) · 430 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 package designpattern.visitor; /** * 客户端 * * @author liu yuning * */ public class VisitorClient { public static void main(String[] args) { ObjectStructure o = new ObjectStructure(); o.attach(new ConcreteElementA()); o.attach(new ConcreteElementB()); ConcreteVisitor1 visitor1 = new ConcreteVisitor1(); ConcreteVisitor2 visitor2 = new ConcreteVisitor2(); o.accept(visitor1); o.accept(visitor2); } } |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |