This class diagram represents a Hotel management system with entities like Hotel, Room, Staff, Manager, Receptionist, Guest, and Booking. The Hotel contains rooms and staff, managed by a Manager who oversees rooms and staff. Receptionists handle guest check-ins and check-outs. Guests can book rooms and make bookings, which include details like Check-In/Out dates and a unique Booking ID. The relationships depict the connections between these entities, such as the Hotel having rooms and staff, and guests booking rooms and making bookings.
Edit this diagram in Gleek
Hotel management system diagram code in Gleek
Hotel
+Name
+Location
+Rooms
+Staff
Room
+RoomNumber
+Type
+Status
+Price
+BookRoom()
+CheckAvailability()
Staff:abstract
+Name
+ID
+Position
+Salary
Manager
+ManageStaff()
+ManageRooms()
Receptionist
+CheckInGuest()
+CheckOutGuest()
Guest
+Name
+ID
+RoomBooked
+CheckIn()
+CheckOut()
Booking
+BookingID
+GuestID
+RoomNumber
+CheckInDate
+CheckOutDate
+MakeBooking()
+CancelBooking()
Hotel {1}-has-{1..*} Room
Hotel {1}-has-{1..*} Staff
Staff -.-> Manager
Staff -.-> Receptionist
Guest {1}-books-{1} Room
Guest {1}-makes-{1} Booking
Manager {1}-manages-{1..*} Room
Manager {1}-manages-> Staff
Receptionist {1}-checks in and out-{1..*} Guest
About class diagrams
Class diagrams are used in software engineering to describe the structure of a system. A class diagram uses Unified Modeling Language (UML) to show the classes, attributes, methods (or operations), and their relationships to each other in the system. Class diagrams prove valuable in object-oriented modeling. Class diagrams can be used to model the data structure or to design a system in detail.
Similar class diagram examples
Library management system class diagram
Online shopping system class diagram
E-commerce website class diagram
Restaurant management system class diagram
Order processing system class diagram
Video rental system class diagram
Course registration system class diagram
Passport automation system class diagram