method
- METHOD-RETURN NAME (TYPE NAME, ...) { STATEMENT ... }
This form creates a method, bound to name, that can be called within this class, on this object, or instances of this class. The body of the method, the sequence of statements, will be evaluated when the method is called. The name may not be the name of any classes defined in the same program or of any fields in the same class. It can be the name of other methods in this class with different arguments. When the method is preceeded by a modifier, then it can be accessed only under the conditions specified by the modifier. abstract
METHOD-RETURN NAME (TYPE NAME, ...);
This form creates the name of a method within an abstract class. All subclasses must implement this method to properly subclass the abstract class. final
METHOD-RETURN NAME (TYPE NAME, ...) { STATEMENT ... }
This form creates a method that cannot be overridden. In all other ways it is the same as a non-final method. static
METHOD-RETURN NAME (TYPE NAME, ...) { STATEMENT ... }
This form creates a method that is tied to the class, not the instance of the class. This method cannot use the expression this
.
ProfessorJ Advanced Language