摘要: 工厂三兄弟(object obj = new string();) 简单工厂模式 //抽象图表接口:抽象产品类 interface Chart { public void display(); } //柱状图类:具体产品类 class HistogramChart implements Chart 阅读全文
posted @ 2020-11-21 18:03 姜佳泉 阅读(84) 评论(0) 推荐(0) 编辑