45.7k views
2 votes
Name the object which notifes other objects about an event

[A] Consumer
[B] Publisher
[C] Subscriber
[D] Tester

User Wenhao Ji
by
7.7k points

1 Answer

2 votes

Final answer:

A publisher is the object responsible for notifying other objects about an event. Subscribers can register themselves to receive these notifications.

Step-by-step explanation:

The object which notifies other objects about an event is called a Publisher. A publisher is responsible for broadcasting events, and other objects known as Subscribers can register themselves to receive these notifications. It is a common pattern used in event-driven programming and is often implemented using the Observer design pattern.

User Praveen Hiremath
by
8.1k points