Skip to content

Commit 6c65303

Browse files
committed
Merge branch 'grtfou-master'
2 parents 295c36c + e1afcd9 commit 6c65303

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎abstract_factory.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,18 @@ class DogFactory:
5252
defget_pet(self):
5353
returnDog()
5454

55+
defget_food(self):
56+
return"dog food"
57+
5558

5659
classCatFactory:
5760

5861
defget_pet(self):
5962
returnCat()
6063

64+
defget_food(self):
65+
return"cat food"
66+
6167
# Create the proper family
6268
defget_factory():
6369
"""Let's be dynamic!"""

0 commit comments

Comments
(0)