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