Difference between revisions of "User-Defined Methods"

From CompSciWiki
Jump to: navigation, search
Line 8: Line 8:
 
==[[Passing Arguments using Methods]]==
 
==[[Passing Arguments using Methods]]==
 
==[[User Defined Methods Review Questions and Exercises|Review Questions and Exercises]]==
 
==[[User Defined Methods Review Questions and Exercises|Review Questions and Exercises]]==
 +
==[[User Defined Methods Solutions|Solutions]]==

Revision as of 19:56, 10 September 2007


Wiki 1010 Table of Contents

Chapter #

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 4: 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





Table of Contents


Overview

Writing a Method

Calling a User-Defined Method

Methods and Scoping

Commenting Methods

Passing Arguments using Methods

Review Questions and Exercises

Solutions