ChemistryWiki | RecentChanges | Preferences
public - can be called outside from called from outside its class
private - can only be called from class in which it is called
- invocation
- static - can be use by naming class (
- non-static - need to make instance of class (ie keyboard) and then use it for class (do not declare non-static, just dont call it static)
- Return type (what give you back, don't have to give back), can only return one thing at a time
- void - no return
- primitive
- class
- single
- must return what I say to return
- make name a verb, first letter small, big for next attached word
- Parameter List
- number and type for argument to be passed
- number:implicit
- type:explicit
- arguments: values passed
- names of argument: formal parameters/parameters
i.e. A Method (static, nothing passed to it, nothing return)
i.e public static void printHelloWorld?()
{
System.out.println("Hello World");
}
Pg229 Q3, Q4(average), 11 (Crap simulation)