Skip to content

Commit bce868f

Browse files
committed
duplicate method removed
1 parent f603e3f commit bce868f

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

abstract_factory.py

-10
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,6 @@ def show_pet(self):
2525
print("It eats {}".format(self.pet_factory.get_food()))
2626

2727

28-
def show_pet(self):
29-
"""Creates and shows a pet using the
30-
abstract factory"""
31-
32-
pet = self.pet_factory.get_pet()
33-
print("This is a lovely", pet)
34-
print("It says", pet.speak())
35-
print("It eats", self.pet_factory.get_food())
36-
37-
3828
# Stuff that our factory makes
3929

4030
class Dog:

0 commit comments

Comments
 (0)