Restaurant Model
Class Restaurant
Represents a restaurant with its name and associated menus.
Properties
name
:String
- The name of the restaurant.menus
:MutableList<Menu>
- A list of menus associated with the restaurant.id
:Int
- The unique identifier for the restaurant (default is 0).
Methods
addMenu(vararg menus: Menu): Restaurant
- Adds one or more menus to the restaurant.