Train: IVehicle<CanalInfo>
first what comes in mind. But do you really need to couple TrackInfo
into vehicles? Why not use manager, which knows vehicles types and stuff?
Train: IVehicle<CanalInfo>
first what comes in mind. But do you really need to couple TrackInfo
into vehicles? Why not use manager, which knows vehicles types and stuff?