コード例 #1
0
 public void AddGrapeSoda(int cansOfGrape)
 {
     for (int i = 0; i < cansOfGrape; i++)
     {
         GrapeSoda grapeSoda = new GrapeSoda();
         grapeSodas.Add(grapeSoda);
     }
 }
コード例 #2
0
        static void Main(string[] args)
        {
            SodaGame sodaGame = new SodaGame();

            sodaGame.RunSodaGame();

            GrapeSoda  grapeSoda  = new GrapeSoda();
            LemonSoda  lemonSoda  = new LemonSoda();
            OrangeSoda orangeSoda = new OrangeSoda();


            sodaGame.SodaMachine.DisplayScreen();
            sodaGame.SodaMachine.EnterMoney();
        }