-
Notifications
You must be signed in to change notification settings - Fork 0
/
DeluxeBurger.java
30 lines (24 loc) · 936 Bytes
/
DeluxeBurger.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package com.company;
public class DeluxeBurger extends Hamburger{
public DeluxeBurger() {
super("Deluxe", "Sausage & Bacon", 14.54, "White");
super.addHamburgerAddition1("Chips", 2.75);
super.addHamburgerAddition2("Drink", 1.81);
}
@Override
public void addHamburgerAddition1(String name, double price) {
System.out.println("Cannot add additional items to a deluxe burger!");
}
@Override
public void addHamburgerAddition2(String name, double price) {
System.out.println("Cannot add additional items to a deluxe burger!");
}
@Override
public void addHamburgerAddition3(String name, double price) {
System.out.println("Cannot add additional items to a deluxe burger!");
}
@Override
public void addHamburgerAddition4(String name, double price) {
System.out.println("Cannot add additional items to a deluxe burger!");
}
}