public void GetWomanConclusion(Woman concreteElementB) { try { string rslt = string.Format("{0} {1}時,背後大多有一個不成功的男人。", concreteElementB.GetType().Name, this.GetType().Name); Console.WriteLine(rslt); } catch (Exception ex) { throw new NotImplementedException(ex.Message); } }
public void GetWomanConclusion(Woman concreteElementB) { /* * string succ = string.Format("{0}{1}時,背後大多有一個不成功的男人。", this.GetType().Name, Action); * string fail = string.Format("{0}{1}時,眼淚汪汪,誰也勤不動。", this.GetType().Name, Action); * string love = string.Format("{0}{1}時,遇事懂也裝作不懂。", this.GetType().Name, Action); */ try { string rslt = string.Format("{0} {1}時,眼淚汪汪,誰也勸不動。", concreteElementB.GetType().Name, this.GetType().Name); Console.WriteLine(rslt); } catch (Exception ex) { throw new NotImplementedException(ex.Message); } }