-
Notifications
You must be signed in to change notification settings - Fork 12
/
lunch.txt
65 lines (41 loc) · 1.4 KB
/
lunch.txt
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
KINDS?
PBNJ Peanut butter and jelly
bread - white bread
hamburger
condiments - options
prep: grill the hamburger.
ham an cheese - cold sourdough
tuna - hot - two pieces
cheese whole wheat.
grilled cheese, cheese, bread, mayo/butter on both side of both pieces
black bean burger
grilled with olive oil an himalayan salt.
bread and gravy
DIFFERENCES
ingredients
prepared differently
class Sandwich:
#CONSTRUCTOR
def __init__(self, name, bread_type="", main_ingredient="", options_list=None):
self.name = name
self.bread_type: str = bread_type
self.main_ingredient: str = main_ingredient
self.options_list: [str] = options_list if options_list is not None else []
def __str__(self):
return f"{self.name} {self.main_ingredient} {self.options_list}"
def cook(self):
print("No cooking required")
class PBNJ(Sandwich):
def __init__(self):
self.name = "Peanut butter and Jelly"
self.bread_type: str = "white"
self.main_ingredient: str = "Peanut Butter"
self.options_list: [str] = ["Jelly"]
class Burger(Sandwich):
def __init__(self):
self.name = "Hamburger"
self.bread_type: str = "Bun"
self.main_ingredient: str = "Ground Beef"
self.options_list: [str] = ["Ketchup"]
def cook(self):
print("Frying burger and toasting bun")