class method | any instance variable | | | using the name of the class, followed by a dot, followed by the name of the method (the name of the class can be omitted when calling a class method in the current class) | Methods | | all instance variables of all objects of its class | | | | an object by instantiating a class | | other methods and variables in any class in the same package by default | | a block of implementation code | | its caller from only one place which should be the last statement | the behaviour of the class | return statement unless it has a void return type | implementing functions such as initializing a class, or operating on the complete set of instances of a class | static method | an argument to a method or constructor | | | | | 1 class | | 0 or more class variables of its class | a class | method | | | its return type | | | the class as a whole, not a particular instance of the class | | instance variables, class variables from other objects | | the super method to invoke a method declared in the superclass | | | 'this' value when it is executing | method signature | a value that is of the return type of the method or a subtype of that type | A method that is invoked without reference to a particular object | public except for those that will definitely need to be called from outside the package |
class variable | | the block where it is declared | any instance of any class | | Members | global variables used in other languages | | giving the data type followed by the name of the variable | | | | a class or an object or a primitive datum | other variables and methods in any class in the same package by default | | value | the state of a class | | | only values that are of the same type as the variable or a subtype of the variable's type | to refer to an object or a class or a primitive datum | static variable | | the class is loaded | a class | | | a class | the body of the class (not inside a method) | | 1 class | member variable | to store - default or 'constant' values that are widely used by methods in a class
- lookup tables and similar structures used in algorithms in a particular class
| an assignment statement | an attribute of an entire class | | specifying the name of the class, followed by a dot, followed by the name of the variable | | the code in its class | | a class outside of a method | | | a class or an object | a name | | | A data item present in a class that is shared by all instances of that class | as private as possible |