コード例 #1
0
 /// <summary>
 /// Constructor for Scooter
 /// </summary>
 /// <param Scooter color = "scooterColor"></param>
 /// <param Engine = "engine"></param>
 /// <param Chassis = "chassis"></param>
 /// <param Transmission = "transmission"></param>
 public Scooter(string scooterColor, Engine engine, Chassis chassis, Transmission transmission) : base(engine, chassis, transmission, _vehicleType)
 {
     ScooterColor = scooterColor;
 }
コード例 #2
0
 /// <summary>
 /// Constructor for Truck
 /// </summary>
 /// <param Carrying capacity = "carryingCapacity"></param>
 /// <param Engine = "engine"></param>
 /// <param Chassis ="chassis"></param>
 /// <param Transmission = "transmission"></param>
 public Truck(float carryingCapacity, Engine engine, Chassis chassis, Transmission transmission) : base(engine, chassis, transmission, _vehicleType)
 {
     CarryingCapacity = carryingCapacity;
 }