> Design Patterns > Template Method > Template Method Design Pattern In Objective C

Template Method Design Pattern In Objective C

Template Method design pattern in Objective C to get some steps of algorithm implemented in subclass.


Template Method design pattern In Objective C

Output

AbstractClass::TemplateMethod()
Inside ConcreteClassA::PrimitiveOperation1()
Inside ConcreteClassA::PrimitiveOperation2()
AbstractClass::TemplateMethod()
Inside ConcreteClassB::PrimitiveOperation1()
Inside ConcreteClassB::PrimitiveOperation2()


Suresh Kumar Srivastava is founder of online learning site coursegalaxy.com and author of popular books C In Depth, Data Structures Through C In Depth. He has 18+ years experience in industry and worked on architecture and design of multiple products. This article Template Method Design Pattern In Objective C is from his Design Patterns course.