-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDeluxeBurger.java
32 lines (27 loc) · 991 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
31
32
package com.example.app;
/**
* Created by dev on 11/08/15.
*/
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 not add additional items to a deluxe burger");
}
@Override
public void addHamburgerAddition2(String name, double price) {
System.out.println("Cannot not add additional items to a deluxe burger");
}
@Override
public void addHamburgerAddition3(String name, double price) {
System.out.println("Cannot not add additional items to a deluxe burger");
}
@Override
public void addHamburgerAddition4(String name, double price) {
System.out.println("Cannot not add additional items to a deluxe burger");
}
}