コード例 #1
0
 public OppoF11Pro(IColor color, IBattery battery, IQuickCharge quickcharge) : base(color, battery, quickcharge)
 {
     _model       = "Oppo F11 Pro";
     _color       = new BlackColor();
     _battery     = new NormalBattery();
     _quickcharge = new Charge40();
 }
コード例 #2
0
 public SamsungNote10(IColor color, IBattery battery, IQuickCharge quickcharge) : base(color, battery, quickcharge)
 {
     _model       = "Samsung Note 10";
     _color       = new GoldColor();
     _battery     = new StrongBattery();
     _quickcharge = new Charge40();
 }
コード例 #3
0
 public OppoFindX2(IColor color, IBattery battery, IQuickCharge quickcharge) : base(color, battery, quickcharge)
 {
     _model       = "Oppo Find X2";
     _color       = new GoldColor();
     _battery     = new StrongBattery();
     _quickcharge = new Charge40();
 }
コード例 #4
0
 public SamsungZFlip(IColor color, IBattery battery, IQuickCharge quickcharge) : base(color, battery, quickcharge)
 {
     _model       = "Samsung Z Flip";
     _color       = new BlackColor();
     _battery     = new NormalBattery();
     _quickcharge = new Charge40();
 }
コード例 #5
0
 public IPhoneSE2(IColor color, IBattery battery, IQuickCharge quickcharge) : base(color, battery, quickcharge)
 {
     _color       = new GoldColor();
     _battery     = new StrongBattery();
     _quickcharge = new Charge40();
     _model       = "IPhone SE 2";
 }