Functional Abstraction (Chap 4)
PPT Slide
Method call-return
Defining Simple Methods
Don't forget static
More about return
Watch for repeating lines.
Top-down Design with methods
Simulating a Coin Toss
The Software Life Cycle
A computer game: Requirements
Refining the requirements
Twenty-one pickup: Design
Twenty-one pickup: Testing
Testing example
Twenty-one pickup: Test Strategy
Recursion
General Form of recursion
Factorial: A classic recursion
Factorial: x = factorial(4);
Method Overloading
An ambiguous overload.
An ambiguous overload - corrected.
javadoc
A Final Example
Email: charlie@cs.ucsc.edu
Home Page: http://www.cse.ucsc.edu/~charlie