The layout of the definition method of the 01 class of food-eating stage 0925

The layout of the definition method of the 01 class of food-eating stage 0925

Insert picture description here

Define an order class, the situation is as follows

Insert picture description here

Define a client class, the situation is as follows

Insert picture description here

Functional Requirements

Complete the start method and showMenu method in the client class

And realize keyboard input and branch function

After the user enters the corresponding number, the corresponding content in the branch is printed

The client needs to have a list of dishes for the user to order

So, there needs to be a container for the dishes

1. Define the container
2. Define the class
3. Initialize the data

Guess you like

Origin blog.csdn.net/ifubing/article/details/108798413