2018年8月12日

摘要: /** * 工厂模式 */ interface IFruit{ public void eat(); } class Apple implements IFruit{ @Override public void eat() { System.out.println("削皮吃苹果!"); } } class Bananer implement... 阅读全文

posted @ 2018-08-12 13:52 lhj1006400320 阅读(115) 评论(0) 推荐(0) 编辑


Copyright © 2024 lhj1006400320
Powered by .NET 8.0 on Kubernetes