LLD - Design — Food Delivery SystemWhich class should primarily hold the list of available food items and their prices in a restaurant system?ARestaurantBMenuCOrderDCustomerCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand the role of Menu classThe Menu class is designed to store food items and their prices, acting as the restaurant's catalog.Step 2: Differentiate from other classesOrder tracks customer requests, Restaurant manages overall operations, Customer represents the diner. Only Menu holds items and prices.Final Answer:Menu -> Option BQuick Check:Menu = items and prices [OK]Quick Trick: Menu holds items and prices, not orders or customers [OK]Common Mistakes:MISTAKESConfusing Order with MenuThinking Restaurant holds item pricesAssuming Customer stores menu data
Master "Design — Food Delivery System" in LLD9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepArchTryChallengeDesignRecallScale
More LLD Quizzes Advanced LLD Concepts - Domain-Driven Design basics - Quiz 9hard Design — Chess Game - Special moves (castling, en passant) - Quiz 1easy Design — Chess Game - Move validation and check detection - Quiz 4medium Design — Chess Game - Move validation and check detection - Quiz 10hard Design — Chess Game - Special moves (castling, en passant) - Quiz 7medium Design — Hotel Booking System - Availability checking - Quiz 11easy Design — Hotel Booking System - Hotel, Room, Booking classes - Quiz 6medium Design — Online Shopping Cart - Product, Cart, Order classes - Quiz 7medium Design — Splitwise (Expense Sharing) - Balance calculation algorithm - Quiz 5medium Design — Splitwise (Expense Sharing) - Transaction history - Quiz 14medium