Purpose of this chapter.
We will learn about the members which is the basic elements that make up the class definition.
Kinds of member.
Members of class are the following five types.
The Field is data for holding the status of individual instances of the class.
The Fitter specifies how to initialize when an instance of the class is created.
The Setter and getter provide access to the field.
The Method specifies the behavior of an instance of the class.
The above description of the members are not accurate. A behavior of the members depends on the implementation.
The classes are defined by defining these members. There is no limit to the order and number of members definition.
Way to define each members will be explained at the following chapters.