Menu class

Hi, I'm working on a small project, one that involves a lot of menus. At first I was just going to write a function to run each menu, but then I realized I might be able to treat a menu as an object. My question is how do I create the class so that it can contain numerous sets of three things: what is typed in(like typing in S may start something), a description of each command(explaining what typing S will do, as a string), and either another menu or a function to be called(a menu if what is typed points to another menu, or a function if something is to be done). If any more info is needed I can try to provide it. I have a hard time understanding explanations, an example may be better. Thanks in advance.
Topic archived. No new replies allowed.