Description: A system for managing restaurant orders, menu items, reservations, and customer details.
• Singleton Pattern:
Order Manager - A Singleton to handle all order operations, ensuring there’s one
centralized point for order processing.
Payment System - A Singleton to manage payment processing, ensuring
consistent payment logic throughout the app.
• Factory Pattern:
Factory for Menu Item Types(e.g., Appetizers, Main Courses, Desserts) to create
different types of menu items.
Factory for Table Types (e.g., Regular, VIP, Outdoor) to create table objects
depending on the user's selection.
Patterns Used: Singleton, Factory