The Menu Class

  • William Drol


This is the second of three chapters (and classes) devoted to building a reusable menu service. This chapter focuses on the Menu class. Menus contain and manage related sets of menu items and display other menus (submenus) when necessary. There’s no question, this is the most complex class in the book, so don’t rush. Here’s the good news: In the next chapter you’ll build a MenuBar class. Thanks to inheritance (and a finished Menu class), you’ll get the MenuBar class running with almost no work.


Action Layer Base Class Interactive Feature Text Editor Menu Item 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© William Drol 2002

Authors and Affiliations

  • William Drol

There are no affiliations available

Personalised recommendations