CS2002 - Week 3 - Class Diagram I Flashcards
(26 cards)
object
Instance of a class, Individuals of a system that have similar characteristics and behaviours
class
A construction plan for a set of similar objects of a system
attribute
Structural characteristics of a class
operation
Behaviour of a class
+ symbol
public access to the attribute (everybody)
dash (-) symbol
private access to the attribute (only the object itself)
hashtag (#) symbol
protected access (class itself and subclasses)
~ symbol
packaged access (classes that are in the same package)
{readOnly}
attribute value cannot be changed
{unique}
no attribute duplicates are permitted
{non-unique}
attribute duplicates are permitted
{ordered}
attributes are fixed in order of the values
{unordered}
attributes have no fixed order of the values
in
An input value is expected from this parameter
out
The parameter has adopted a new value, output
inout
Combined input/output parameter
instance variable
Variables that belong to an individual instance or object of a class
class variable
Variables that belong to the class itself, not to individual instances
class operation
An operation/method that belongs to the class itself rather to individual instances of that class
association
Possible relationships between instance of classes
multiplicity
Number of objects that may be associated with exactly one object of the opposite side
binary association
Represents a relationship between exactly two classes
role
Describes the way in which an object is involved in an association relationship
n-ary association
Relationship between n classes