First page Back Continue Last page Graphics
Instance and Class Members
Any member (variable, method, or constant) of a class that is not declared static is an instance member:
- They are associated with individual objects
- In a message, the receiver is specified by a variable or expression that evaluates to an object
Any member declared static is a class member, shared by all objects of the class:
- In a message, the receiver is specified by a class name
- Example: BorderLayout.NORTH
- Example: JOptionPane.showInputDialog(msg);