/// <summary> /// 股民炒股 /// </summary> /// <param name="args"></param> static void Main(string[] args) { Stock1 gu1 = new Stock1(); Stock2 gu2 = new Stock2(); Stock3 gu3 = new Stock3(); gu1.Sell(); gu2.Sell(); gu3.Sell(); gu1.Buy(); gu2.Buy(); gu3.Buy(); Fund jijin = new Fund(); //基金购买 jijin.BuyFund(); //基金赎回 jijin.SellFund(); Facade facade = new Facade(); facade.MethodA(); facade.MethodB(); Console.Read(); }
public void BuyFund() { gu1.Buy(); gu2.Buy(); gu3.Buy(); nd1.Buy(); rt1.Buy(); }