diff --git a/CreationalPatterns/abstract-factory/AbstractFactoryPattern.cxx b/CreationalPatterns/abstract-factory/AbstractFactoryPattern.cxx index 1bb5f9b..d8ab83d 100644 --- a/CreationalPatterns/abstract-factory/AbstractFactoryPattern.cxx +++ b/CreationalPatterns/abstract-factory/AbstractFactoryPattern.cxx @@ -87,7 +87,7 @@ int main(int argc, char* argv[]) { AbstractFactory* cf2 = new ConcreateFactory2(); AbstractProductA* productA2 = cf2->createProductA(); productA2->checkProduct(); - AbstractProductB* productB2 = cf1->createProductB(); + AbstractProductB* productB2 = cf2->createProductB(); productB2->checkProduct(); -} \ No newline at end of file +}