public class MenuItem extends java.lang.Object
Constructor and Description |
---|
MenuItem(java.lang.String name,
java.lang.String description,
boolean vegetarian,
double price) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription() |
java.lang.String |
getName() |
double |
getPrice() |
boolean |
isVegetarian() |
java.lang.String |
toString() |
public MenuItem(java.lang.String name, java.lang.String description, boolean vegetarian, double price)
public java.lang.String getName()
public java.lang.String getDescription()
public double getPrice()
public boolean isVegetarian()
public java.lang.String toString()
toString
in class java.lang.Object