Пример #1
0
 public static Vehicle ByPriceColor(int price, int color)
 {
     Vehicle vehicle = new Vehicle();
     vehicle.price = price;
     vehicle.color = color;
     return vehicle;
 }
Пример #2
0
 public static Vehicle ByBrandModel(string brand, string model)
 {
     Vehicle vehicle = new Vehicle();
     vehicle.brand = brand;
     vehicle.model = model;
     return vehicle;
 }
Пример #3
0
 public static Vehicle ByBrandModelColor(string brand, string model, int color)
 {
     Vehicle vehicle = new Vehicle();
     vehicle.brand = brand;
     vehicle.model = model;
     vehicle.color = color;
     return vehicle;
 }
Пример #4
0
 public static Vehicle ByPrice(int price)
 {
     Vehicle vehicle = new Vehicle();
     vehicle.price = price;
     return vehicle;
 }
Пример #5
0
 public static Vehicle ByBrand(string brand)
 {
     Vehicle vehicle = new Vehicle();
     vehicle.brand = brand;
     return vehicle;
 }