Java Reference
In-Depth Information
The name of the help file is passed to the
Help
constructor and stored in the instance
variable
helpfile
. Since each instance of
Help
will have its own copy of
helpfile
,
each instance can use a different file. Thus, you can create different sets of help files
for different sets of topics.
4.
Add the
helpOn( )
method shown here to the
Help
class. This method retrieves help
on the specified topic.