SWE TEST QUESTIONS SOLVED 100% CORRECT!!!
2025
class diagram
static structure representing:
- possible classes (object types), including their attributes and operations, and relationships
among them
object diagram
structure including:
- objects (including their attribute values)
- links (connections) among them
class
a description of a set of similar objects that shared the same set of attributes, operations,
relationships, and meaning.
class operations
describe the class behavior and appear in the third compartment.
class operation order
name, type and default value of all parameters and return type
parameter name, colon, and type
what are the 3 kinds of relationships in UML?
dependencies
associations
generalizations
Dependency
, indicates a semantic relationship between two or more elements
Generalization
connects a subclass to its superclass
denotes an inheritance of attributes, behavior, and relationships from the superclass to the
subclass AND all associations in which superclass participates
"is -a" relationship
Association
if two classes are related in some way or need to communicate with each other
may be navigable or non- navigable
Association Multiplicity
Aggregations
type of association; that can model objects that contain other objects by the way of special
associations
specifies a whole-part
relationship between a whole and a constituent part, where the part can exist independently
-- open diamond
Composition
indicates a strong ownership and coincident lifetime of parts by the whole (created and
destroyed at the same time)
- filled diamond
enumeration
2025
class diagram
static structure representing:
- possible classes (object types), including their attributes and operations, and relationships
among them
object diagram
structure including:
- objects (including their attribute values)
- links (connections) among them
class
a description of a set of similar objects that shared the same set of attributes, operations,
relationships, and meaning.
class operations
describe the class behavior and appear in the third compartment.
class operation order
name, type and default value of all parameters and return type
parameter name, colon, and type
what are the 3 kinds of relationships in UML?
dependencies
associations
generalizations
Dependency
, indicates a semantic relationship between two or more elements
Generalization
connects a subclass to its superclass
denotes an inheritance of attributes, behavior, and relationships from the superclass to the
subclass AND all associations in which superclass participates
"is -a" relationship
Association
if two classes are related in some way or need to communicate with each other
may be navigable or non- navigable
Association Multiplicity
Aggregations
type of association; that can model objects that contain other objects by the way of special
associations
specifies a whole-part
relationship between a whole and a constituent part, where the part can exist independently
-- open diamond
Composition
indicates a strong ownership and coincident lifetime of parts by the whole (created and
destroyed at the same time)
- filled diamond
enumeration