1.2.15 Understanding Classes

Video: Classes (7:29)
A Class Describes a Kind of Object

So far, you have worked mainly with object instances:

Object diagram showing Player class, then creates describes Player objects, then player1, player2, player3.
PlayerClass.

The class is not Jordan, Casey, or Morgan.

Those are possible object states.

The class describes what a Player object can be like in the software.

Fields Belong to the Class Definition

A conceptual Player class might define fields such as:

Object diagram showing class defines what kind of object can exist, then object one instance created from that class.
ClassDefinesWhatKindOfObjectCanExist.