Skip to content

Commit ab5401e

Browse files
committed
updates
1 parent ad47579 commit ab5401e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

factory/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
from chair_factory import ChairFactory
44

55
# The Client
6-
CHAIR = ChairFactory().get_chair("SmallChair")
6+
CHAIR = ChairFactory.get_chair("SmallChair")
77
print(CHAIR.get_dimensions())

factory/factory_concept.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,5 @@ def create_object(some_property):
5858

5959

6060
# The Client
61-
PRODUCT = Creator().create_object('b')
61+
PRODUCT = Creator.create_object('b')
6262
print(PRODUCT.name)

0 commit comments

Comments
 (0)