Section 17.7. Exercises


17.7. 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.



Learning C# 2005
Learning C# 2005: Get Started with C# 2.0 and .NET Programming (2nd Edition)
ISBN: 0596102097
EAN: 2147483647
Year: 2004
Pages: 250

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net