public abstract class MenuComponent extends java.lang.Object
Constructor and Description |
---|
MenuComponent() |
Modifier and Type | Method and Description |
---|---|
void |
add(MenuComponent menuComponent) |
abstract java.util.Iterator |
createIterator() |
MenuComponent |
getChild(int i) |
java.lang.String |
getDescription() |
java.lang.String |
getName() |
double |
getPrice() |
boolean |
isVegetarian() |
void |
print() |
void |
remove(MenuComponent menuComponent) |
public MenuComponent()
public void add(MenuComponent menuComponent)
public void remove(MenuComponent menuComponent)
public MenuComponent getChild(int i)
public java.lang.String getName()
public java.lang.String getDescription()
public double getPrice()
public boolean isVegetarian()
public abstract java.util.Iterator createIterator()
public void print()