摘要:
装饰设计模式优点:耦合性不强,被装饰的类的变化与装饰类的变化无关 public static void main (String[] args){ HeiMaStudent hms = new HeiMaStudent (new Student()); hms.code(); } interface 阅读全文
摘要:
public class Demo5_LineNumberReader{ public static void main(String[] args) throws IOException{ LineNumberReader lnr = new LineNumberReader(new FileRe 阅读全文