03 2022 档案

摘要:public class ObserveTest { public static void main(String[] args) { NotifyObject1 notifyObject1 = new NotifyObject1(); NotifyObject2 notifyObject2 = n 阅读全文
posted @ 2022-03-14 11:54 剑阁丶神灯 阅读(8) 评论(0) 推荐(0) 编辑
摘要:public class TemplateMethodTest { public static void main(String[] args) { AbstractClass abstractClass = new Subclass1(); abstractClass.operation(); / 阅读全文
posted @ 2022-03-08 17:13 剑阁丶神灯 阅读(24) 评论(0) 推荐(0) 编辑
摘要:public class StrategyTest { public static void main(String[] args) {// Zombie zombie = new FlagZombie(); Zombie zombie = new BigHeadZombie(); zombie.d 阅读全文
posted @ 2022-03-08 14:26 剑阁丶神灯 阅读(18) 评论(0) 推荐(0) 编辑