> Design Patterns > Strategy > Strategy Design Pattern In Objective C

Strategy Design Pattern In Objective C

Strategy design pattern in Objective C for selection of algorithm from a family of algorithms based on context or data.


Strategy design pattern In Objective C

Output

Inside ConcreteStrategyA::AlgorithmInterface()
Inside ConcreteStrategyB::AlgorithmInterface()
Inside ConcreteStrategyC::AlgorithmInterface()


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 Strategy Design Pattern In Objective C is from his Design Patterns course.