Answer to Question #250061 in Java | JSP | JSF for Eylul

Question #250061

Context

The Observer Pattern de nes a one-to-many dependency between objects so that when one object changes state, all of its dependents are noti ed and updated automatically. 


Imagine the life of a celebrity who has many fans. Each of these fans wants to be know of what their favorite celebrity has posted recently (images, videos, chats, etc.). So as long as the fan’s interest continues, she/he can follow this celebrity. When the fan loses interest, she/he stops following that celebrity.

Hint: ∼ Fans are observers and celebrity is a subject.

∼ Remember, a celebrity can have more than one follower


1
Expert's answer
2021-10-12T07:40:01-0400

Observer is a behavioral design pattern that lets you define a subscription mechanism to notify multiple objects about any events that happen to the object they’re observing.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS