Types can be divided generally into two:
- Simple Types – Can store only a single data item.
- Non-Single Types – Can store multiple items.
The multiple elements that can be stored by non-single types are called members.
Types of Members
The members can be divided into two:
- Data Members – These store data relevant to the object of the class or the class as whole.
- Function Members – These members define the behavior of a type.