예제 #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;
 }