SingleTrainTrip
public struct SingleTrainTrip
A trip between two railway stations that only uses one train
-
A train riding between
startPoint
andendPoint
Declaration
Swift
public let train: MovingTrain
-
The start of the trip
Declaration
Swift
public let startPoint: TrainStop
-
The end of the trip
Declaration
Swift
public let endPoint: TrainStop