| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,9 +23,9 @@ def show_pet(self): | |||
| 23 | 23 | abstract factory""" | |
| 24 | 24 | ||
| 25 | 25 | pet = self.pet_factory.get_pet() | |
| 26 | - print("This is a lovely {}".format(pet)) | ||
| 26 | + print("We have a lovely {}".format(pet)) | ||
| 27 | 27 | print("It says {}".format(pet.speak())) | |
| 28 | - print("It eats {}".format(self.pet_factory.get_food())) | ||
| 28 | + print("We also have {}".format(self.pet_factory.get_food())) | ||
| 29 | 29 | ||
| 30 | 30 | ||
| 31 | 31 | # Stuff that our factory makes | |
@@ -83,15 +83,15 @@ def get_factory(): | |||
| 83 | 83 | print("=" * 20) | |
| 84 | 84 | ||
| 85 | 85 | ### OUTPUT ### | |
| 86 | - # This is a lovely Dog | ||
| 86 | + # We have a lovely Dog | ||
| 87 | 87 | # It says woof | |
| 88 | - # It eats dog food | ||
| 88 | + # We also have dog food | ||
| 89 | 89 | # ==================== | |
| 90 | - # This is a lovely Cat | ||
| 91 | - # It says meow | ||
| 92 | - # It eats cat food | ||
| 90 | + # We have a lovely Dog | ||
| 91 | + # It says woof | ||
| 92 | + # We also have dog food | ||
| 93 | 93 | # ==================== | |
| 94 | - # This is a lovely Dog | ||
| 94 | + # We have a lovely Dog | ||
| 95 | 95 | # It says woof | |
| 96 | - # It eats dog food | ||
| 96 | + # We also have dog food | ||
| 97 | 97 | # ==================== | |
| Back | FazBrowse Home | New Git URL |
0 commit comments