Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package oop.PizzaModified;
- public enum PizzaType {
- HAWAIIAN(10), MEATLOVERS(12), VEGETARIAN(9);
- private int price;
- PizzaType(int price) {
- this.price = price;
- }
- public int price() {
- return price;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement