public Car(float ballanse, CarType.carTypes carType) { //Random rand = new Random(); this.CarId = rnd.Next(0, 2000); this.Ballanse = ballanse; this.TypeOfCar = carType; }
public Car(int carId, float ballanse, CarType.carTypes carType) { this.CarId = carId; this.Ballanse = ballanse; this.TypeOfCar = carType; }