What is a Data Member? Help.
Hi i'm pretty new to programming and i'm learning java at the moment. Im confused as to what a data member actually is, im working on a practice program and in the description for one of the class's i have to create it says this
"# Define classes for the Number, Shape, Color and Shading properties such that objects of each type can only be one of the three corresponding values for that type.
# Define a Card class that has data members for each of the properties defined in the previous step. The Card must also have a "toString()" function that returns a textual description of its properties (e.g. "3 Blue Striped Diamond"). "
I'm not quite sure what its asking, and also i don't understand why they would want me to create separate classes for each property of a card instead of just having instance variables for each property defined in the card class itself. any help would be appreciated please.

