/// <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 Fund() { gu1 = new Stock1(); gu2 = new Stock2(); gu3 = new Stock3(); nd1 = new NationalDebt1(); rt1 = new Realty1(); }
public Fund() { gu1 = new Stock1(); gu2 = new Stock2(); gu3 = new Stock3(); }