From ggc
|
01 packagepackage is used to name the directory or folder a class is in intermediate;
02
03 importimport means to make the classes and/or packages available in this program wiki.Wiki;
04 /**
05 * All about my classclass is a group of fields and methods used for making objects here.
06 * @authorthis is the Javadoc tag for documenting who created the source code William Anderson
07 */
08 publicpublic is used to indicate unrestricted access (any other class can have access) classclass is a group of fields and methods used for making objects OtherGreeter implementsimplements means providing method bodies for the methods declared in the corresponding interface GreeterInterface
09
10 {open braces start code blocks and must be matched with a close brace
11 publicpublic is used to indicate unrestricted access (any other class can have access) String getGreeting()
12 {open braces start code blocks and must be matched with a close brace
13 returnreturn means to provide the result of the method and/or cease execution of the method immediately "Hello.";
14
15
16 }close braces end code blocks and must match an earlier open brace
17 }close braces end code blocks and must match an earlier open brace
18
|
Download/View intermediate/OtherGreeter.java