Scenario: You are required to design a class to hold details of a metro station, including the number of tickets sold. The station should have the following properties: Property Name Examples Validation Public Accessors Name “Aldgate” “Barbican” Not “” Get Set Line “District” “Central” Not “” Get Set TicketsSold 1234 0 to 999999 Get Examples of names and lines can be found at https://en.wikipedia.org/wiki/List_of_London_Underground_stations . The Station class should have a public method sellTicket() which adds 1 to the TicketsSold property. Task 1: Draw a class diagram showing the Station class – you might want to use draw.io to produce the diagram, paste your diagram into the box below: Task 2: Implement your Station class in c# and paste the source...
Welcome to my personal blog, where I am excited to share my experiences and insights gained from my university modules. Although this platform may not have a wide audience, I find it quite interesting to share something about myself on a platform, even if no one is currently looking.