A variable of a data type that is a class. Also called
an instance of a class. Stores data Can perform actions and provide communication State of object refers to the data it stores Behavior of object refers to the action and communication it provides
instance variables in the class. A class variable is declared with the keyword static and only one copy of a class variable is maintained for all objects to refer to.
Instance methods must be called from an instance of
the class. Accessor and modifier methods are always instance methods because they change the state of an object. Class methods are declared using the keyword static and can be called from the class itself.
Chapter 8 Differences Between Instance and Class Members
Instance variables are created each time an object is
declared. Class variables are created once for the class and then objects of the class refer to this copy. Instance methods can only be called from an object of the class. Class methods can be called from the class itself.
Reusability: existing classes can be used over and
over again in different applications, which reduces development time and decreases the likelihood of bugs. Modular: Components are separately written and maintained.