示例#1
0
文件: Program.cs 项目: quangnle/GOF
 public InsuranceDecorator(ClassComponent baseComponent) : base(baseComponent)
 {
     this._name  = "Insurance Service";
     this._price = 30;
 }
示例#2
0
文件: Program.cs 项目: quangnle/GOF
 protected Decorator(ClassComponent baseComponent)
 {
     classComponent = baseComponent;
 }
示例#3
0
文件: Program.cs 项目: quangnle/GOF
 public MealDecorator(ClassComponent baseComponent) : base(baseComponent)
 {
     this._name  = "Meal Service";
     this._price = 15;
 }
示例#4
0
文件: Program.cs 项目: quangnle/GOF
 public BaggageDecorator(ClassComponent baseComponent) : base(baseComponent)
 {
     this._name  = "Baggage Service";
     this._price = 7;
 }