Classes: Object Templates
¥
A Java program is a collection of classes.
¥
A class is an object template consisting of a
collection of
members
Ñ
fields
and
methods
Ñ
plus a
constructor
, which is a special method
used to initialize objects when created.