コード例 #1
0
 private void button15_Click(object sender, EventArgs e)
 {
     potato = new Ice[3];
     for (int i = 0; i < potato.Length; i++)
     {
         potato[i] = new Ice();
     }
     carrot = new Chokolate[2];
     for (int i = 0; i < carrot.Length; i++)
     {
         carrot[i] = new Chokolate();
     }
     onion = new Icecream[2];
     for (int i = 0; i < onion.Length; i++)
     {
         onion[i] = new Icecream();
     }
     chicken = new Vanil();
     lapsha  = new Milk();
 }
コード例 #2
0
 public void AddLapsha(Milk t)
 {
     lapsha = t;
 }