private static void Main(string[] args) { const double money = 100; //小明和女神去买衣服 Console.WriteLine("女神买衣服"); GoToShop shop = new GoToShop(new WoMan()); Console.WriteLine(shop.BuyClothes(money)); Console.WriteLine("------------------"); Console.WriteLine("小明买衣服"); shop = new GoToShop(new Man()); Console.WriteLine(shop.BuyClothes(money)); Console.ReadLine(); }