コード例 #1
0
 protected Decorator(phoneInterface phone)
 {
     tmp_phone = phone;
 }
コード例 #2
0
 public redColor(phoneInterface phone) : base(phone)
 {
     this.name = "Red Phone";
     this.cost = 5;
 }