We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad47579 commit ab5401eCopy full SHA for ab5401e
factory/client.py
@@ -3,5 +3,5 @@
3
from chair_factory import ChairFactory
4
5
# The Client
6
-CHAIR = ChairFactory().get_chair("SmallChair")
+CHAIR = ChairFactory.get_chair("SmallChair")
7
print(CHAIR.get_dimensions())
factory/factory_concept.py
@@ -58,5 +58,5 @@ def create_object(some_property):
58
59
60
61
-PRODUCT = Creator().create_object('b')
+PRODUCT = Creator.create_object('b')
62
print(PRODUCT.name)
0 commit comments