Java Classes
A class definition encompasses:- class fields - attributes of the class as a whole
- class methods - what the class as a whole does
- instance fields - attributes of an object
- instance methods - what objects do
- constructors - create new objects.
And these example programs also explain polymorphism, inheritance, packages, modifiers, and the heap.
