11 2020 档案

摘要:一.普通版本的观察者模式 以下是观察者模式的模板,这里就不展开解释了 1 public interface Observer { 2 void print(String msg); 3 } 4 //被观察者1 5 public class ConcreteObserverOne implements 阅读全文
posted @ 2020-11-23 22:57 kozz 阅读(453) 评论(1) 推荐(0)