7 questions on "Objects and Classes - Finding Objects and Classes - Attributes"
In what form do we do this?
Second compartment: Attribute's compartment
Third compartment: Operations compartment
If we wind up omitting all the attributes, we might as well even omit the entire attribute compartment for that class from the diagram.
the copyright year is not an independent thing, it is a property of a book.
These properties are things that you could imagine asking an instance for the current value
What does the first view show?
- he first view shows four attributes (title, author, year, and accessionNo).
- Attributes generally start with a lower-case letter.
Each of these attributes is typed either as a String or as an Integer.
The TYPE follows the attribute name and usually begins with an initial capital. If the type appears, the “:” is required to precede the type name for parsing
- The TYPE follows the attribute name and usually begins with an initial capital. If the type appears, the “:” is required to precede the type name for parsing
What do we see in the second view?
This is an explicit mark that there is at least one elided item.
I call it the Nah-Nah symbol because it teases that we have something in the model that we are not going to show you here.
When the … appears, it must be the last or only item in the list.
- Higher grades + faster learning
- Never study anything twice
- 100% sure, 100% understanding