In order for event handlers to be called using delegates, the delegate must ____.

A. be declared with a return type of void
B. include at least two parameter arguments representing the event and object
C. be instantiated in the application as a delegate
D. maintain a list of the registered event handlers for the event

Answer: D

Computer Science & Information Technology

You might also like to view...

What does the InterestCheckingAccount class of Figure 1.14 inherit from the BankAccount class?

What will be an ideal response?

Computer Science & Information Technology

What is wrong in the following code?

``` #include #include using namespace std; int main() { vector v; cout << v[0]; return 0; } ``` A. The program has a runtime error on vector v. B. The program has a runtime error on v[0], because the vector is empty. C. The program has a syntax error on vector v. D. The program has a syntax error on v[0].

Computer Science & Information Technology