コード例 #1
0
 public CombustionMotorcycle(string i_WheelManufacturerName, string i_ModelName, string i_LicensePlate)
     : base(2, 30, i_WheelManufacturerName, i_ModelName, i_LicensePlate)
 {
     Tank = new Tank(EnergyType.Octan96, 6);
 }
コード例 #2
0
ファイル: Truck.cs プロジェクト: mirzviz/GarageProject
 public Truck(string i_WheelManufacturerName, string i_ModelName, string i_LicensePlate)
     : base(12, 28, i_WheelManufacturerName, i_ModelName, i_LicensePlate)
 {
     Tank = new Tank(EnergyType.Soler, 115f);
 }
コード例 #3
0
 public ElectricCar(string i_WheelManufacturerName, string i_ModelName, string i_LicensePlate)
     : base(4, 32, i_WheelManufacturerName, i_ModelName, i_LicensePlate)
 {
     Tank = new Tank(EnergyType.Electricity, 3.2f);
 }