Exercises

Exercise 17-1.

Write a countdown alarm program that uses delegates to notify anyone who is interested that the designated amount of time has passed.

Exercise 17-2.

Break the program you write in Exercise 17-1 by assigning a new handler to the delegate (deleting the old!).

Exercise 17-3.

Fix the program you wrote in Exercise 17-1 by using the event keyword and test against changes you added in Exercise 17-2.

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

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