/
Software Structural Models and Class Diagrams
Save to my account
Sign up
Software Structural Models and Class Diagrams
Software Structural Models and Class Diagrams
Study
1
Question
What do structural models of software represent?
Answer
Structural models display the organization of a system in terms of its components and their relationships.
2
Question
What is the difference between static structural models and other structural models?
Answer
Static structural models show the structure of the system design itself, typically at a fixed point, rather than dynamic behavior or interactions over time.
3
Question
When are structural models of a system typically created?
Answer
They are created when discussing and designing the system architecture.
4
Question
What is the purpose of class diagrams in object-oriented system modeling?
Answer
Class diagrams show the classes in a system and the associations (relationships) between these classes.
5
Question
How can an object class be described conceptually?
Answer
An object class is a general definition or template of one kind of system object.
6
Question
What does an association between classes represent?
Answer
An association is a link between classes that represents some kind of relationship between them.
7
Question
In early software engineering modeling stages, what do objects typically represent?
Answer
They represent something in the real world, such as a patient, prescription, or doctor.
8
Question
What elements does a class typically have?
Answer
A class has a class name, a set of optional attributes, and a set of optional methods.
9
Question
How is the visibility or scope of class attributes and methods specified?
Answer
Scope can be specified as Private, Package, Protected, or Public.
10
Question
What does an association relationship between two classes describe?
Answer
It describes a relationship where one class can use or interact with another class in some way.
11
Question
What is the difference between unidirectional and bidirectional associations?
Answer
A unidirectional association has one arrowhead indicating one-way use, while bidirectional has zero or two arrowheads indicating two-way interaction.
12
Question
What is a reflexive association?
Answer
A reflexive association describes a relationship between one class and itself.
13
Question
What is the purpose of assigning a name to an association?
Answer
A name describes how the two classes are associated, clarifying the nature of their relationship.
14
Question
What is an association role in class diagrams?
Answer
It is the name given to the end of an association at the class it connects to, indicating the role played by that class in the relationship.
15
Question
What does multiplicity indicate in an association?
Answer
Multiplicity indicates how many objects of a class participate in a given relationship.
16
Question
Explain the multiplicity notation "0..10", "1, 2", and "*"
Answer
"0..10" means zero to ten objects; "1, 2" means either one or two objects; "*" means any number of objects.
17
Question
Give an example of a reflexive association from the text.
Answer
A staff member supervised by another staff member in the same class, such as a maintenance crew member supervised by aviation engineer, illustrates a reflexive "supervise" relationship.