10.9 Class diagrams Attributes are an object’s data, and methods are an object’s code . An object’s class defines which attributes and methods it will have.
Read moreWhat are attributes in Java?
An attribute is another term for a field . It’s typically a public constant or a public variable that can be accessed directly. In this particular case, the array in Java is actually an object and you are accessing the public constant value that represents the length of the array.12 Ara 2011
Read more