예제 #1
0
 //collect data about pills in Bottles
 public void Visit(BottleElement bottle)
 {
     _count += bottle.Items;
 }
 //collect data about pills in Bottles
 public void Visit(BottleElement bottle)
 {
     _weight += ((bottle.Items) * .41);
 }