> Design Patterns > Observer > Observer Design Pattern In Objective C

Observer Design Pattern In Objective C

Observer design pattern in Objective C to notify all the objects to update themselves when an object state gets changed.


Observer design pattern In Objective C

Output

Inside ConcreteObserverA::Update()
State = 1
Inside ConcreteObserverB::Update()
State = 1


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