001package headfirst.composite.menu; 002 003public abstract class MenuComponent { 004 005 public void add(MenuComponent menuComponent) { 006 throw new UnsupportedOperationException(); 007 } 008 public void remove(MenuComponent menuComponent) { 009 throw new UnsupportedOperationException(); 010 } 011 public MenuComponent getChild(int i) { 012 throw new UnsupportedOperationException(); 013 } 014 015 public String getName() { 016 throw new UnsupportedOperationException(); 017 } 018 public String getDescription() { 019 throw new UnsupportedOperationException(); 020 } 021 public double getPrice() { 022 throw new UnsupportedOperationException(); 023 } 024 public boolean isVegetarian() { 025 throw new UnsupportedOperationException(); 026 } 027 028 public void print() { 029 throw new UnsupportedOperationException(); 030 } 031}