示例#1
0
 public Car(CarsModels model, int maxSpeed = 0)
 {
     this._carModel         = model;
     this._carColor         = 0;
     this._carYearManuf     = DateTime.Today.Year;
     this._carMileage       = 0;
     this._carMaxSpeed      = maxSpeed;
     this._additionalInform = "";
     _сarsCreated++;
 }
示例#2
0
 public Car(CarsModels model, CarsColors color, int year, int mileage = 0, int maxSpeed = 200, string info = "")
 {
     CarModel        = model;
     CarColor        = color;
     CarYearManuf    = year;
     CarMileage      = mileage;
     CarMaxSpeed     = maxSpeed;
     AditionalInform = info;
     CarsCreated++;
 }
示例#3
0
 public Car()
 {
     this._carModel         = 0;
     this._carColor         = 0;
     this._carYearManuf     = DateTime.Today.Year;
     this._carMileage       = 0;
     this._carMaxSpeed      = 200;
     this._additionalInform = "";
     _сarsCreated++;
 }