1
1.9kviews
Draw class diagram for given scenario. Show clearly the relationship among participating classes.

Q. Consider the Railway System:

  1. Stations, tracks connecting stations.
  2. Trains with name & ID
  3. Train schedules record the time a train passes through each station on its route. Assume that each train reaches its destination on same day and every train runs everyday For each train on its route, store (a) time in (b) time out (c) Sequence no so stations in the route of a train can be ordered by sequence no.
  4. Passenger booking consisting of train, date, from station, to station, coach, seat and passenger name. Draw class diagram for above scenario. Show clearly the relationship among participating classes.
Please log in to add an answer.