What field represents attributes for an object of a class?
Printable View
What field represents attributes for an object of a class?
Fields are attributes, there is no master field for all attributes.
In my software/programming homework there is a question asking:
The fields that represent attributes for an object of a class are known as _______.
Ah, that's slightly different wording. If they are asking about the object variables, they are called instance variables, if the question is with regard to attributes of a class itself (attributes which comprise the class itself and all instances of said class) then they are called Class variables. See here for more information: Understanding Instance and Class Members (The Java™ Tutorials > Learning the Java Language > Classes and Objects)