public static Vehicle ByPriceColor(int price, int color) { Vehicle vehicle = new Vehicle(); vehicle.price = price; vehicle.color = color; return vehicle; }
public static Vehicle ByBrandModel(string brand, string model) { Vehicle vehicle = new Vehicle(); vehicle.brand = brand; vehicle.model = model; return vehicle; }
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; }
public static Vehicle ByPrice(int price) { Vehicle vehicle = new Vehicle(); vehicle.price = price; return vehicle; }
public static Vehicle ByBrand(string brand) { Vehicle vehicle = new Vehicle(); vehicle.brand = brand; return vehicle; }