【設計模式】簡單工廠模式——以一個簡單的計算器爲例

本文內容參考自《大話設計模式》(程傑 著)web 注:如下代碼爲C#實現設計模式 1.拙劣的代碼 class Program { static void Main(string[] args) { Console.Write("請輸入數字A:"); string A = Console.ReadLine(); Consol
相關文章
相關標籤/搜索