Skip to Content
Microsoft® Visual C#® 2012 Step by Step
book

Microsoft® Visual C#® 2012 Step by Step

by John Sharp
December 2012
Beginner to intermediate content levelBeginner to intermediate
844 pages
25h 38m
English
Microsoft Press
Content preview from Microsoft® Visual C#® 2012 Step by Step

Chapter 3. Writing Methods and Applying Scope

After completing this chapter, you will be able to

  • Declare and call methods.

  • Pass information to a method.

  • Return information from a method.

  • Define local and class scope.

  • Use the integrated debugger to step into and out of methods as they run.

In Chapter 2, you learned how to declare variables, how to create expressions using operators, and how precedence and associativity control the way in which expressions containing multiple operators are evaluated. In this chapter, you’ll learn about methods. You’ll see how to declare and call methods, and you’ll also learn how to use arguments and parameters to pass information to a method as well as return information from a method by using a return statement. You’ll ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® Visual C#® 2008 Step by Step

Microsoft® Visual C#® 2008 Step by Step

John Sharp
Beginning Microsoft® Visual C#® 2008

Beginning Microsoft® Visual C#® 2008

Karli Watson, Christian Nagel, Jacob Hammer Pedersen, Jon D. Reid, Morgan Skinner, Eric White

Publisher Resources

ISBN: 9780735679375Purchase book