public Transport(string newName, int newWeight, double newWidth, double newLength, int newMaxSpeed, typeTransport newType) { name = newName; idTransport = idCount; idCount++; countTransport++; weight = newWeight; width = newWidth; length = newLength; maxSpeed = newMaxSpeed; type = newType; year = new DateTime(1); cost = -1; passengers = -1; }
public Volkswagen(string newName, int newWeight, double newWidth, double newLength, int newMaxSpeed, typeTransport newTypeTransport, int newWheels, int newDoors, double newClearance, AutoType newType, Engine newEngine, ModelVolkswagen newModel) : base(newName, newWeight, newWidth, newLength, newMaxSpeed, newTypeTransport, newWheels, newDoors, newClearance, newType, newEngine) { model = newModel; }
public Auto(string newName, int newWeight, double newWidth, double newLength, int newMaxSpeed, typeTransport newTypeTransport, int newWheels, int newDoors, double newClearance, AutoType newType, Engine newEngine) : base(newName, newWeight, newWidth, newLength, newMaxSpeed, newTypeTransport) { wheels = newWheels; doors = newDoors; clearance = newClearance; type = newType; engine = newEngine; speed = AverageSpeed(0); }
public Transport(string newName, int newWeight, double newWidth, double newLength, int newMaxSpeed, typeTransport newType, int newPassengers, DateTime newYear, double newCost) : this(newName, newWeight, newWidth, newLength, newMaxSpeed, newType) { passengers = newPassengers; year = newYear; cost = newCost; }