-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDominos.java
42 lines (35 loc) · 869 Bytes
/
Dominos.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
33
34
35
36
37
38
39
40
41
42
package InterfaceINjava;
interface Pizza{
void VegPizza();
void NonVegPizza();
}
interface Sides extends Pizza{
void Snacks();
}
interface Offers extends Sides{
void Select();
}
public class Dominos implements Offers{
public void VegPizza() {
System.out.println("Veg Pizza : Farmhouse , Paneer Makhni , Peppy Paneer , Veg Loaded ");
}
public void NonVegPizza()
{
System.out.println("Non Veg Pizza : Non Veg Loaded , Chicken Dominator , Pepper Barbecue");
}
public void Snacks()
{
System.out.println("Snacks : Chicken wings , Burger , White Sauce Pasta , Shots ");
}
public void Select()
{
System.out.println(" Everyday Value offers : 2 regular@199 each ");
}
public static void main(String[] args) {
Dominos o = new Dominos();
o.VegPizza();
o.NonVegPizza();
o.Snacks();
o.Select();
}
}