Booking System
Hotel : Weak Composition( Booking system has hotels)
Room: Strong Compoisition(Hotel owns rooms)
Payment :
Pricing
Booking Details: Composition (Booking Systmes owns Booking Details)
Enum:
Room Type
Room Status
Design Pattern:
Strategy Design Pattern:
1. Used for pricing
2. Used for payment
Principle:
SRP
OCP:
Open for new pricing model
Open for new payment strategy
Open to add new hotels in booking system closed for update in existing hotel update rooms
LCP:
Each payment strategy has payment method and they inheritence payment
Booking system has book which each hotel and rooms follows and implement
ISP: Payment Strategy and Pricing Stratgy has only those method which are needed
DIP: Payment Strategy and Pricing Stratgy doesn't depend on it's child class