コード例 #1
0
ファイル: Program.cs プロジェクト: skmygdrs/jgy_code
 public Fund()
 {
     gu1 = new Stock1();
     gu2 = new Stock2();
     gu3 = new Stock3();
     nd1 = new NationalDebt1();
     rt1 = new Realty1();
 }
コード例 #2
0
 public Fund()
 {
     gu1 = new Stock1();
     gu2 = new Stock2();
     gu3 = new Stock3();
     nd1 = new NationalDebt1();
     rt1 = new Realty1();
 }
コード例 #3
0
 public Fund()
 {
     stock1        = new Stock1();
     stock2        = new Stock2();
     stock3        = new Stock3();
     nationalDebt1 = new NationalDebt1();
     realty1       = new Realty1();
 }
コード例 #4
0
ファイル: Program.cs プロジェクト: skmygdrs/jgy_code
        static void Main(string[] args)
        {
            Stock1 gu1 = new Stock1();
            Stock2 gu2 = new Stock2();
            Stock3 gu3 = new Stock3();
            NationalDebt1 nd1 = new NationalDebt1();
            Realty1 rt1 = new Realty1();

            gu1.Buy();
            gu2.Buy();
            gu3.Buy();
            nd1.Buy();
            rt1.Buy();

            gu1.Sell();
            gu2.Sell();
            gu3.Sell();
            nd1.Sell();
            rt1.Sell();

            Console.Read();
        }
コード例 #5
0
        static void Main(string[] args)
        {
            Stock1        gu1 = new Stock1();
            Stock2        gu2 = new Stock2();
            Stock3        gu3 = new Stock3();
            NationalDebt1 nd1 = new NationalDebt1();
            Realty1       rt1 = new Realty1();

            gu1.Buy();
            gu2.Buy();
            gu3.Buy();
            nd1.Buy();
            rt1.Buy();

            gu1.Sell();
            gu2.Sell();
            gu3.Sell();
            nd1.Sell();
            rt1.Sell();

            Console.Read();
        }