Button is a child class of Component. Does Button have a paint() method?

A good answer might be:

Yes.

Not all Methods of a Class are Discussed

Children inherit the methods of their parent class. So Button has a paint() method. However, if you look at the documentation for Button the method is not discussed (it is listed in small type). To find the full listing for the method, go up the hierarchy to where it is first defined. In the case of the paint() method, go up the hierarchy one level to the Component class.

Often all you want to do is check a few things about a method of a class. You may have to look several levels up the hierarchy before you find what you want.

If the amount of documentation is overwhelming do not despair. Most of what you need to know for a beginning programming course has already been covered. You may wish to burrow through the Java documentation and try some of its examples, but you are not expected to know it all.

QUESTION 9:

Enough documentation?

Click Here after you have answered the question