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