Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package prep_29_iteratorpattern;
- public class MenuItem {
- String name;
- String description;
- boolean vegetarian;
- double price;
- public MenuItem(String name, String description, boolean vegetarian, double price) {
- this.name = name;
- this.description = description;
- this.vegetarian = vegetarian;
- this.price = price;
- }
- public String getName() {
- return name;
- }
- public String getDescription() {
- return description;
- }
- public double getPrice() {
- return price;
- }
- public boolean isVegetarian() {
- return vegetarian;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement