First of all, to explain the idea behind my question ill explain that i want to create a text-based program. I would like to create a main menu. I talked to my teacher about this, and he said i should use the switch statement. Now, i would like to know how to use this statement to open another class.
Like for exmaple, main menu gives you the following options(inventory system)(keyboard input):
1) View Engines
2) View Life jackets
3) Add a new item
....
What must be written in the case 1, case 2, to bring me to these other classes..
2007-03-23
23:29:45
·
2 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design