001package headfirst.composite.menu; 002 003public class Waitress { 004 MenuComponent allMenus; 005 006 public Waitress(MenuComponent allMenus) { 007 this.allMenus = allMenus; 008 } 009 010 public void printMenu() { 011 allMenus.print(); 012 } 013}