Monday, July 7, 2008

Methods That Send Values Back

Reading
Read the section entitled "Methods That Send Values Back" starting on page 36 to the top of page 39.

Code
Add the method "NumberOfLegs" to your class and call it from your Main method.
Hint: You can copy the method from the book and paste it into your class, but it must be put in the right place.
Be sure to build the project, then run it. Set a breakpoint in your new method and step through the code line by line and understand how it works.

No comments: