コード例 #1
0
 public Coffee(int sugar, IPreparable type)
 {
     sugarPieces = sugar;
     Preparable  = type;
 }
コード例 #2
0
 public Pizzeria(IPreparable food)
 {
     foods     = new List <IPreparable>();
     this.food = food;
 }