So, how do we apply the Composite Pattern to our menus? To start with, we need to create a
component interface; this acts as the common interface for both menus and menu items and allows
us to treat them uniformly. In other words we can call the same method on menus or menu items.
Now, it may not make sense to call some of the methods on a menu item or a menu, but we can deal
with that, and we will in just a moment. But for now, let’s take a look at a sketch of how the menus
are going to fi t into a Composite Pattern structure: