From 7f0e6bcf99dbfe50380291e00de66b075b4e5415 Mon Sep 17 00:00:00 2001 From: yashsonyyy Date: Thu, 10 Oct 2024 11:55:20 +0530 Subject: [PATCH] Update AbstractFactoryPattern.cxx second productB created with cf1 instead of cf2 --- .../abstract-factory/AbstractFactoryPattern.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}