Пример #1
0
 public Vehicle(string licensePlates, string color, int price, TypeVehicle typeVehicle, int age, TypeStatusVehicle status, int mileage)
 {
     this.licensePlates = licensePlates;
     this.color         = color;
     this.price         = price;
     this.typeVehicle   = typeVehicle;
     this.age           = age;
     this.status        = status;
     this.mileage       = mileage;
 }
Пример #2
0
 public Car(string licensePlates, string color, int price, TypeVehicle typeVehicle, int age, TypeStatusVehicle status, int mileage, int seating) : base(licensePlates, color, price, typeVehicle, age, status, mileage)
 {
     this.seating = seating;
 }
Пример #3
0
 public Truck(string licensePlates, string color, int price, TypeVehicle typeVehicle, int age, TypeStatusVehicle status, int mileage, int weight) : base(licensePlates, color, price, typeVehicle, age, status, mileage)
 {
     this.weight = weight;
 }
Пример #4
0
 public Moto(string licensePlates, string color, int price, TypeVehicle typeVehicle, int age, TypeStatusVehicle status, int mileage, int cylinderVolume) : base(licensePlates, color, price, typeVehicle, age, status, mileage)
 {
     this.cylinderVolume = cylinderVolume;
 }