Example #1
0
 public InsuranceDecorator(ClassComponent baseComponent) : base(baseComponent)
 {
     this._name  = "Insurance Service";
     this._price = 30;
 }
Example #2
0
 protected Decorator(ClassComponent baseComponent)
 {
     classComponent = baseComponent;
 }
Example #3
0
 public MealDecorator(ClassComponent baseComponent) : base(baseComponent)
 {
     this._name  = "Meal Service";
     this._price = 15;
 }
Example #4
0
 public BaggageDecorator(ClassComponent baseComponent) : base(baseComponent)
 {
     this._name  = "Baggage Service";
     this._price = 7;
 }