Previous Page
Next Page

Chapter 3
Writing Methods and Applying Scope
After completing this chapter, you will be able to:

In Chapter 2, “Working with Variables, Operators, and Expressions,” you learned how to declare variables, how to create expressions using operators, and how precedence and associativity control expressions containing multiple operators. In this chapter, you'll learn about methods. You'll also learn how to use arguments and parameters to pass information to a method and how to return information from a method by using return statements. Finally, you'll see how to step in and out of methods by using the Microsoft Visual Studio 2005 integrated debugger. This information is useful when you need to trace the execution of your methods because they do not work quite as you expected.


Previous Page
Next Page