Bladeren bron

duplicate method removed

msbanik 12 jaren geleden
bovenliggende
commit
bce868fb9c
1 gewijzigde bestanden met toevoegingen van 0 en 10 verwijderingen
  1. 0 10
      abstract_factory.py

+ 0 - 10
abstract_factory.py

@@ -25,16 +25,6 @@ class PetShop:
         print("It eats {}".format(self.pet_factory.get_food()))
         print("It eats {}".format(self.pet_factory.get_food()))
 
 
 
 
-    def show_pet(self):
-        """Creates and shows a pet using the
-        abstract factory"""
-
-        pet = self.pet_factory.get_pet()
-        print("This is a lovely", pet)
-        print("It says", pet.speak())
-        print("It eats", self.pet_factory.get_food())
-
-
 # Stuff that our factory makes
 # Stuff that our factory makes
 
 
 class Dog:
 class Dog: