コード例 #1
0
 public Vehicle(string nameCar, TypesOfVehicle typesOfVehicle, TypesOfColor typesOfColor, Colors colors, TypesOfEngine typesOfEngine, TypesOfFuel typesOfFuel)
 {
     Name          = nameCar;
     TypeOfVehicle = typesOfVehicle;
     TypeOfColor   = typesOfColor;
     Color         = colors;
     TypeOfEngine  = typesOfEngine;
     TypeOfFuel    = typesOfFuel;
 }
コード例 #2
0
 public HardTruck(TypesOfTruck typeOfTruck, int weight, string nameCar, TypesOfVehicle typesOfVehicle, TypesOfColor typesOfColor,
                  Colors colors, TypesOfEngine typesOfEngine, TypesOfFuel typesOfFuel, double engineCapacity,
                  double averageFuelСonsumption, int yearOfRelease, string vincode)
     : base(nameCar, typesOfVehicle, typesOfColor, colors, typesOfEngine, typesOfFuel,
            engineCapacity, averageFuelСonsumption, yearOfRelease, vincode)
 {
     TypeOfTruck = typeOfTruck;
     Weight      = weight;
 }
コード例 #3
0
 public Vehicle(string nameCar, TypesOfVehicle typesOfVehicle, TypesOfColor typesOfColor, Colors colors, TypesOfEngine typesOfEngine, TypesOfFuel typesOfFuel, double engineCapacity, double averageFuelСonsumption, int yearOfRelease, string vincode)
 {
     Name                   = nameCar;
     TypeOfVehicle          = typesOfVehicle;
     TypeOfColor            = typesOfColor;
     Color                  = colors;
     TypeOfEngine           = typesOfEngine;
     TypeOfFuel             = typesOfFuel;
     EngineCapacity         = engineCapacity;
     AverageFuelСonsumption = averageFuelСonsumption;
     YearOfRelease          = yearOfRelease;
     Vincode                = vincode;
 }
コード例 #4
0
 public Vehicle(string nameCar, TypesOfVehicle typesOfVehicle, TypesOfColor typesOfColor, Colors colors, TypesOfEngine typesOfEngine, TypesOfFuel typesOfFuel, double engineCapacity, int weight, double upTo100, double averageFuelСonsumption, int amountOfSeats, int yearOfRelease, string vincode)
 {
     name                   = nameCar;
     TypeOfVehicle          = typesOfVehicle;
     TypeOfColor            = typesOfColor;
     Color                  = colors;
     TypeOfEngine           = typesOfEngine;
     TypeOfFuel             = typesOfFuel;
     EngineCapacity         = engineCapacity;
     Weight                 = weight;
     UpTo100                = upTo100;
     AverageFuelСonsumption = averageFuelСonsumption;
     AmountOfSeats          = amountOfSeats;
     YearOfRelease          = yearOfRelease;
     Vincode                = vincode;
 }
コード例 #5
0
 public RaceCar(string nameCar, TypesOfVehicle typesOfVehicle, TypesOfColor typesOfColor, Colors colors, TypesOfEngine typesOfEngine, TypesOfFuel typesOfFuel)
     : base(nameCar, typesOfVehicle, typesOfColor, colors, typesOfEngine, typesOfFuel)
 {
 }
コード例 #6
0
 public RaceCar(double averageRate, string nameOfTeam, string captainName, double totalCost, int amountOfRaceStaff, int amountOfTrackStaff, string owningCompanyName, string representingCompanyName,
                string nameCar, TypesOfVehicle typesOfVehicle, TypesOfColor typesOfColor, Colors colors, TypesOfEngine typesOfEngine, TypesOfFuel typesOfFuel, double engineCapacity, double upTo100, double averageFuelСonsumption, int amountOfSeats, int amountOfDoors, int yearOfRelease, string vincode)
     : base(nameCar, typesOfVehicle, typesOfColor, colors, typesOfEngine, typesOfFuel, engineCapacity, averageFuelСonsumption, amountOfSeats, amountOfDoors, yearOfRelease, vincode)
 {
     UpTo100                 = upTo100;
     AverageRate             = averageRate;
     NameOfTeam              = nameOfTeam;
     CaptainName             = captainName;
     TotalCost               = totalCost;
     AmountOfRaceStaff       = amountOfRaceStaff;
     AmountOfTrackStaff      = amountOfTrackStaff;
     OwningCompanyName       = owningCompanyName;
     RepresentingCompanyName = representingCompanyName;
 }
コード例 #7
0
 public Car(string nameCar, TypesOfVehicle typesOfVehicle, TypesOfColor typesOfColor, Colors colors, TypesOfEngine typesOfEngine, TypesOfFuel typesOfFuel, double engineCapacity, double averageFuelСonsumption, int amountOfSeats, int amountOfDoors, int yearOfRelease, string vincode) 
         : base(nameCar, typesOfVehicle, typesOfColor, colors, typesOfEngine, typesOfFuel, engineCapacity, averageFuelСonsumption, yearOfRelease, vincode)
     {
         AmountOfSeats = amountOfSeats;
         AmountOfDoors = amountOfDoors;
     }
コード例 #8
0
 public Helicopter(int liftingCapacity, TypesOfHelicopters typeOfHelicopter, TypesOfProperty typesOfProperty, string nameCar, TypesOfVehicle typesOfVehicle, TypesOfColor typesOfColor, Colors colors, TypesOfEngine typesOfEngine, TypesOfFuel typesOfFuel, double engineCapacity, double averageFuelСonsumption, int amountOfSeats, int amountOfDoors, int yearOfRelease, string vincode)
     : base(nameCar, typesOfVehicle, typesOfColor, colors, typesOfEngine, typesOfFuel, engineCapacity, averageFuelСonsumption, yearOfRelease, vincode)
 {
     TypeOfHelicopter = typeOfHelicopter;
     TypeOfProperty   = typesOfProperty;
     LiftingCapacity  = liftingCapacity;
 }