UML Part1
UML Part1
Software Engineering 10
More UML diagrams
Software Engineering 11
1. Class Diagram
• Class diagrams are the most common diagrams used in UML. Class
diagram consists of classes, interfaces, associations, and
collaboration.
• Class diagrams basically represent the object-oriented view of a
system, which is static in nature.
• This is the most widely used diagram at the time of system
construction.
+ denotes public attributes or operations
- denotes private attributes or operations
# denotes protected attributes or operations
~ denotes package attributes or operations
Multiplicity Association
Aggregation Composition
• Objects of Class2 live and die with Class1.
• It represents a "part of" relationship. • Class2 cannot stand by itself.
• Class2 is part of Class1.
• Many instances (denoted by the *) of Class2
can be associated with Class1.
Dependency: Relationship Names
• Exists between two classes if the • Names of relationships are
changes to the definition of one may written in the middle of the
cause changes to the other (but not association line
the other way around).
• Class1 depends on Class2
Class diagram
Generalization ( Inheritance ): bottom to up
Specialization ( up to bottom)
Software Engineering 26
Active and Passive Users
the Visa Card Holder and Bank Customer are Primary Actors, while the Visa AS and Bank IS are
secondary actors.
There is another way to classify actors, they can be:
• Human
• Systems / Software
• Hardware
• Timer / Clock
• Use Cases are system functionalities that a system should perform in
collaboration with one or more external users of the system (actors).
• Each use case should provide some observable and valuable results to
the actors or other stakeholders of the system.
Generalization & Specialization
Association, Aggregation,
Composition
Showing dependency