Exemple #1
0
 public Vehicle(float weight, int maxSpeed, int maxTemperature, int power)
 {
     _engine = new Engine(maxTemperature);
     _maxSpeed = maxSpeed;
     _weight = weight;
     _power = power;
     _currentSpeed = 0;
 }
Exemple #2
0
 public Vehicle()
 {
     _engine = new Engine();
     _weight = 0;
     _power = 10;
     _maxSpeed = 100;
     _currentSpeed = 0;
 }