Exemple #1
0
 /// <summary>
 /// Returns a new Car class.
 /// </summary>
 /// <param name="Name">Name of the Car</param>
 /// <param name="DriveTrain">DriveTrain </param>
 /// <param name="Mass">Mass of car in Kg</param>
 public Car(string Name, DriveTrainType DriveTrain, Int32 Mass)
 {
     _engine = new Engine();
     _driveTrainType = DriveTrain;
     _name = Name;
     base.Mass = Mass;
 }
Exemple #2
0
 public Car()
 {
     _engine = new Engine();
     _driveTrainType = DriveTrainType.RearWheelDrive;
     _name = "Default";
 }