λFPAI
Practice/Restaurant Menu

Restaurant Menu

Medium

Build a MenuItem base with name and price.

Subclasses: Appetizer, MainCourse, Dessert with specific preparation methods.

Create an Order class that aggregates items and computes the bill with taxes.

OOP Focus: Aggregation and polymorphism.

Note: This is statement-only in the current Practice version; stdout should be empty.

Loading editor...

Output

Run or submit to see output.