コード例 #1
0
 public object visit(nofood n)
 {
     if (cals<max) Console.WriteLine("No more food but I'm still hungry!");
       else Console.WriteLine("That was just right!");
     return cals;
 }
コード例 #2
0
 public object visit(nofood n)
 {
     return foodSum;
 }
コード例 #3
0
 public object visit(nofood n)
 {
     return min;
 }