User-Defined Methods

From CompSciWiki
Revision as of 12:02, 22 November 2011 by JordanS (Talk | contribs)

Jump to: navigation, search


Wiki 1010 Table of Contents

Wiki method02.jpg

Chapter 6

Up until now, all of the code you have written has been placed in the main method. As programs get larger and more complex, code written entirely in the main method becomes unmaintainable and unreadable. Chapter 3: Calling Methods briefly described how to call a method to make our work easier. This chapter will explain how to create your own methods to perform your own tasks.

  Write a Program a Day Case Studies

Overview

Writing a Method

Calling a User-Defined Method

Methods and Scoping

Commenting Methods

Passing Arguments using Methods

Review Questions and Exercises

Solutions




Chapter 5: Loops Table of Contents Chapter 7: Arrays



Template loop detected: