public Car(string model, Category category, string number, Driver driver) { Model = model; Category = category; CarNumber = number; CarPassport = new CarPassport(driver, this); }
public Car(string model, string categor) { _model = model; Color = Color.Blue; _categor = categor; _carPassport=new CarPassport(this); }
public Car(string name, char category) { Model = name; Color = Color.Blue; Category = category; CarPassport = new CarPassport(this); }
public Car(string m, Categories c) { Model = m; if (c != Categories.A) { Category = c; } else { throw new Exception("Нельзя присвоить машине категорию А, категория А - для мотоциклов!"); } CarPassport = new CarPassport(this); }
public Car(string model, char category) { Model = model; Category = category; CarPassport = new CarPassport(this); }
public Car(string model, char category) { Model = model; Categorie = category; CarPass = new CarPassport(this); }
public Car(string model, string category) { Model = model; Category = category; CarPassport = new CarPassport(this); }