Which two types of actions can trigger an event? (Each correct answer presents a complete solution.
Choose two.)
A.
User intervention, such as a mouse click.
B.
Some other program logic, such as a call to the program module.
C.
Declaring the signature of the delegate.
D.
Adding a delegate keyword.
Explanation:
* A delegate is a type that holds a reference to a method. A delegate is declared with a signature
that shows the return type and parameters for the methods it references, and can hold references
only to methods that match its signature.
* Events in the .NET Framework are based on the delegate model. The delegate model follows the
observer design pattern, which enables a subscriber to register with, and receive notifications from,
a provider. An event sender pushes a notification that an event has happened, and an event receiver
receives that notification and defines a response to it.