Bird
0
0

In a restaurant system, which class is responsible for storing the details of each dish including its name, description, and price?

easy📝 Conceptual Q2 of 15
LLD - Design — Food Delivery System
In a restaurant system, which class is responsible for storing the details of each dish including its name, description, and price?
AMenu
BOrder
CCustomer
DRestaurant
Step-by-Step Solution
Solution:
  1. Step 1: Identify the class that holds dish details

    The Menu class typically stores all available dishes with their details.
  2. Step 2: Exclude other classes

    Order handles customer orders, Customer stores customer info, Restaurant manages overall operations.
  3. Final Answer:

    Menu -> Option A
  4. Quick Check:

    Menu holds dish info [OK]
Quick Trick: Menu stores dish details, not Order or Customer [OK]
Common Mistakes:
  • Confusing Order class as the holder of dish details
  • Assuming Restaurant class stores menu items

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes