A railway reservation system is designed using classes such as Passenger,…
A railway reservation system is designed using classes such as Passenger, Ticket, and Payment. The system establishes relationships in which a Passenger books a Ticket, and each Ticket is linked to a Payment.
During testing, it is observed that even when the payment transaction fails, the system still generates and confirms the ticket. Developers argue that since the relationships among classes are correctly defined, the system should function properly.
Determine the reason behind this unexpected behavior. Identify whether the issue lies in relationships or control mechanisms, and justify your answer based on OOP principles.
Sign up free to check your answer
Sign up freeLoading lesson…

