From ggc
|
1 packagepackage is used to name the directory or folder a class is in intermediate;
2
3 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 BankAccount
4 {open braces start code blocks and must be matched with a close brace
5 publicpublic is used to indicate unrestricted access (any other class can have access) String toString()
6 {open braces start code blocks and must be matched with a close brace
7 returnreturn means to provide the result of the method and/or cease execution of the method immediately "a bank account";
8 }close braces end code blocks and must match an earlier open brace
9 }close braces end code blocks and must match an earlier open brace
|
Download/View intermediate/BankAccount.java