Summary
In this chapter you revisit creating methods, only now you create methods that return values. You will also learn method overloading and recursion.
Slides
Try It – Step by Step
- Return Values
- Writing Methods
- Method Composition
- Overloading
- Boolean Methods
- JavaDoc Tags
- More Recursion
- One More Example
Supplementary Videos
Udacity and LearningLad both have some good videos on methods. You should watch both sets of videos. Udacity’s videos are more instructional in nature while LearningLad’s are more hands-on tutorial.
Udacity
LearningLad
For an overall review of methods, refer to this video by LearningLad. But note, in this book you use static methods until chapter eleven. In the LearningLad tutorial you use object methods rather than static methods.