Class is actually a template for creating an object, each object contains data, and provides a method of processing and accessing data. Category defines what data and features can be included in each object, but the class does not contain data. For example, a class represents a person, it can define the information (height, age, weight, etc.). When using, the transient object represents a person.
Member of the class
It can be divided into two major category itself and inherited from the base class.
The members of the class have the following types