05 2012 档案
摘要:The Adapter Pattern converts the interface of a class into another interface the clients expect.Adapter lets classes work together that couldnot otherwise beause of incompatible interfaces. 1 interface Duck { 2 public void quack(); 3 public void fly(); 4 } 5 6 interface Turkey { 7 publi...
阅读全文