O'Reilly logo

Begin to Code with C# by Rob Miles

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

8. Using methods to simplify programs

Image

What you will learn

Methods are an essential part of program design. You can use methods to break a large solution into individual components and to create libraries of behaviors that your programs can use. The programs we’ve created to this point have worked with methods in the Snaps library (the DisplayString method, for example) to interact with users. In this chapter, you will learn how to create and use methods of your own. You’ll find out how to give methods data to work on and how a program can receive results from a method’s work. Methods are a great way to make programs more concise and easier to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required