摘要:
120. Archipelago time limit per test: 0.25 sec. memory limit per test: 4096 KB Archipelago Ber-Islands consists of N islands that are vertices of equi 阅读全文
摘要:
定义:动态地给一个对象加入一些额外的职责,就添加功能来说,装饰模式比生成子类更为灵活。 结构图: 演示样例代码: public abstract class Component { public abstract void operation(); } public class ConcreteCo 阅读全文