`
racingbird
  • 浏览: 23364 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
文章列表

工厂与接口

接口和工厂模式 interface Service{ void method1(); void method2(); } interface ServiceFactory{ Service getService(); } class Implementation1 implements Service{ Implementation1(){}; public void method1() { System.out.println("Implementation1 method1"); } public void method2 ...
Global site tag (gtag.js) - Google Analytics