I am given the following system description :
Consider a hotel
management system to manage a group of 5-stars hotels. If this system is modelled using OOP methodology, and the classes are identified as Hotel, Trip, Room, VIP Room, Regular Room, Suite, Customer, Payment, Cash_Payment, Credit_Debit_Payment, Reservation.
Now I need to draw its UML class diagram, here is my solution :
I have related the customer class indirectly with the Hotel using the reservation class which is related to the Room class and Trip class and both of them are related to the Hotel class is this a valid solution ?. Also, did I miss any composition or Aggregation relationships? Finally, are these multiplicities right? I am just participating in some problems for class diagrams to understand it, so please help me.