Section 7.11. Exercises


7.11. Exercises



Exercise 7-1 .

Write a program with a Math class that has four methods : Add , Subtract , Multiply , and Divide , each of which takes two parameters. Call each method from Main( ) .



Exercise 7-2 .

Modify the program from Exercise 7-1 so that you do not have to create an instance of Math to call the four methods.



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