TYPE | DESCRIPTION | KEYWORD | DIAGRAMED |
---|---|---|---|
public | All classes and instances have access to the member. | public | drawn on the border of the large class or object rectangle, so that other classes and objects can "see" it and have access to it. |
OR | |||
private | The member is available only to the class or object itself. No other classes or objects may use the member. | private | drawn inside the large class or object rectangle, so that no other classes or objects can "see" it or have access to it |
TYPE | DESCRIPTION | KEYWORD | DIAGRAMED |
---|---|---|---|
class | the member has the scope of the entire class, and while individual objects may use the member, they will not have a copy of the member for themselves. Rather, there is only one copy of this member that is shared by all the instance objects. Class members do not have access, regardlress of visibility modifiers, to instance members. | static | the rectangle is drwan with right angles for corners |
OR | |||
instance | the member is maintained and controlled specifically by one object. |   | the rectangle is drawn with rounded corners |
TYPE | DESCRIPTION | KEYWORD | DIAGRAMED |
---|---|---|---|
constant | the member must be given an initial definition or value and cannot be changed from that point on. | final | a small lock is drawn inside the rectangle |
OR     A | |||
variable | the member may be changed as often as you like. |   |   |
TYPE | DESCRIPTION | KEYWORD | DIAGRAMED |
---|---|---|---|
data | the member is either an Object (reference) or a primitive |   | the name of the member is placed above its rectangle, so that the actual value may be placed inside |
OR     A | |||
method | the member is an action that can be performed (when sent a message to do so) |   | the name of the member is placed inside the rectangle; arguments and return values are communicated with arrows |