, a sink
or event sink
is a class
designed to receive incoming events from another object
or function. This is commonly implemented in C++
. Object-oriented languages, such as Java
, have built-in support for sinks by allowing events to be fired to delegate functions.