Introducing Methods

As mentioned at the beginning of this chapter, classes usually consist of two things: instance variables and methods. The topic of methods is a large one because Java gives, them so much power and flexibility. In fact, much of the next chapter is devoted to . methods. However, there are some fundamentals that you need to learn now so that you can begin to add methods to your classes. This is the general form of a method.

[vfb id=1]

Share This