Textbook Notes (280,000)
CA (170,000)
Ryerson (10,000)
ITM (900)
ITM 200 (20)
Chapter 8

Chapter 8

Information Technology Management
Course Code
ITM 200
Vikraman Baskaran

This preview shows half of the first page. to view the full 3 pages of the document.
Chapter 8 – Methods and more complex programs
8.1 Designing programs
Top-down design is breaking down into manageable chunks in order to understand them
and implement solution and if a chunk is still too complex for a solution to be found, you
break it down further into smaller chunks
Object orientation is a powerful analysis, design and implementation technique
8.2 Types of method
Characteristics of an expression
There are 2 types of method
oMethods that carry out an action (have a side effect)
These methods have return type void, which indicates that they do not
return any value
Calls to such methods are statements
oMethods that compute and return a value
These methods have a non-void return type, for example if the method
returns an integer, the return type is int
Calls to these methods are expressions
8.3 Writing your own methods
Subprograms like square2() on pg 179 have no external effect whatsoever
They do not
oChange the value of any variables outside their own code
oOpen any files
oWrite anything to the screen
oRead anything from the keyboard
However, they do
You're Reading a Preview

Unlock to view full version