We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 295c36c + e1afcd9 commit 6c65303Copy full SHA for 6c65303
1 file changed
abstract_factory.py
@@ -52,12 +52,18 @@ class DogFactory:
52
def get_pet(self):
53
return Dog()
54
55
+ def get_food(self):
56
+ return "dog food"
57
+
58
59
class CatFactory:
60
61
62
return Cat()
63
64
65
+ return "cat food"
66
67
# Create the proper family
68
def get_factory():
69
"""Let's be dynamic!"""
0 commit comments