示例#1
0
 public Ham(Pizza p)
     : base(p)
 {
     Description = "Ham";
 }
示例#2
0
 public Peppers(Pizza p)
     : base(p)
 {
     Description = "Peppers";
 }
示例#3
0
        protected Pizza _pizza; //the object we wrap, that will be decorated

        #endregion Fields

        #region Constructors

        public Decorator(Pizza p)
        {
            _pizza = p;
        }
示例#4
0
 public Cheese(Pizza p)
     : base(p)
 {
     Description = "Cheese";
 }