Manages multiple railways and their respective public transport systems. More...
#include <Transportation.h>
Public Member Functions | |
| void | addRailway (Railway railway) |
| Adds a railway to the rail system. | |
| void | upgrade () |
| Upgrades the rail system. | |
| int | getUtilization () |
| Gets the overall utilization of the rail system. | |
Manages multiple railways and their respective public transport systems.
This class tracks the number of railways and their utilization.
| void RailSystem::addRailway | ( | Railway | railway | ) |
Adds a railway to the rail system.
| railway | The Railway object to add. |
| int RailSystem::getUtilization | ( | ) |
Gets the overall utilization of the rail system.