Java Reference
In-Depth Information
CHAPTER
6
M ETHODS
Objectives
To define methods with formal parameters (§6.2).
To invoke methods with actual parameters (i.e., arguments) (§6.2).
To define methods with a return value (§6.3).
To define methods without a return value (§6.4).
To pass arguments by value (§6.5).
To develop reusable code that is modular, easy to read, easy to debug,
and easy to maintain (§6.6).
To write a method that converts hexadecimals to decimals (§6.7).
To use method overloading and understand ambiguous overloading
(§6.8).
To determine the scope of variables (§6.9).
To apply the concept of method abstraction in software development
(§6.10).
To design and implement methods using stepwise refinement (§6.10).
 
 
 
Search WWH ::




Custom Search