代理模式 簡單說就是,A/B兩人實作同一介面,A代理B,則B把自己交給A。 程式如下: // Subject public interface IHello { public void hello(String name); } ...
確定! 回上一頁