Quiz

Question 17–1.

Define an event to signal that the phone has rung.

Question 17–2.

Are delegates value types or reference types?

Question 17–3.

What is the purpose of a delegate?

Question 17–4.

How do you instantiate a delegate, such as the OnPhoneRings delegate described in the first question?

Question 17–5.

Give an example of how you might call the delegated method through the delegate.

Question 17–6.

What is multicasting?

Question 17–7.

What does the event keyword do?

Question 17–8.

If you want to pass information into the method that is called through the event, how do you do so?

Question 17–9.

What properties or methods does System.EventArgs have?

Question 17–10.

How can you create delegated methods anonymously?

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset