What is an observer?

Posted by Jessica Taylor | Updated on

Observer is an interface for a consumer of push-based notifications delivered by an Observable. It has below structure,

A handler that implements the Observer interface for receiving observable notifications will be passed as a parameter for observable as below,


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers