File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/AbstractFactory/Conceptual Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -53,10 +53,10 @@ class ConcreteFactory1(AbstractFactory):
53
53
то время как внутри метода создается экземпляр конкретного продукта.
54
54
"""
55
55
56
- def create_product_a (self ) -> ConcreteProductA1 :
56
+ def create_product_a (self ) -> AbstractProductA :
57
57
return ConcreteProductA1 ()
58
58
59
- def create_product_b (self ) -> ConcreteProductB1 :
59
+ def create_product_b (self ) -> AbstractProductB :
60
60
return ConcreteProductB1 ()
61
61
62
62
@@ -67,10 +67,10 @@ class ConcreteFactory2(AbstractFactory):
67
67
RU: Каждая Конкретная Фабрика имеет соответствующую вариацию продукта.
68
68
"""
69
69
70
- def create_product_a (self ) -> ConcreteProductA2 :
70
+ def create_product_a (self ) -> AbstractProductA :
71
71
return ConcreteProductA2 ()
72
72
73
- def create_product_b (self ) -> ConcreteProductB2 :
73
+ def create_product_b (self ) -> AbstractProductB :
74
74
return ConcreteProductB2 ()
75
75
76
76
You can’t perform that action at this time.
0 commit comments