static void Main(string[] args) { var p = new Parson("小菜"); var bigT = new BigTrouser(); var t = new TShirts(); var s = new Sneaker(); t.Decorate(p); s.Decorate(t); bigT.Decorate(s); bigT.Show(); }
public void Decorate(Parson parson) { component = parson; }