PDF Class Diagram Un
PDF Class Diagram Un
Members
UML provides mechanisms to represent
class members, such as attributes and
methods, and additional information about
them like constructors.
Visibility
Dependency
Aggregation
Composition relationship
1. When attempting to represent real-
world whole-part relationships, e.g. an
engine is a part of a car.
2. When the container is destroyed, the
contents are also destroyed, e.g. a
university and its departments.
Aggregation relationship
1. When representing a software or
database relationship, e.g. car model
engine ENG01 is part of a car model
CM01, as the engine, ENG01, maybe
also part of a different car model.[10]
2. When the container is destroyed, the
contents are usually not destroyed, e.g.
a professor has students; when the
professor leaves the university the
students do not leave along with the
professor.
Generalization/Inheritance
symbolic of realization
(subclass) _______▻
(superclass)
A is a type of B
For example, "an oak is a type of tree",
"an automobile is a type of vehicle"
Realization/Implementation
symbolic of realization
(implementer) -------▻
(interface)
General relationship
Dependency
Multiplicity
Entities
See also
Executable UML
List of UML tools
Object-oriented modeling
Dependency (UML)
Related diagrams
Domain model
Entity–relationship model
Object diagram
References
1. Sparks, Geoffrey. "Database Modeling in
UML" (http://www.methodsandtools.com/a
rchive/archive.php?id=9) . Retrieved
8 September 2011.
External links
Introduction to UML 2 Wikimedia
Commons
Class Diagrams (http://
has media
www.agilemodeling.co related to
Class
diagram.
m/artifacts/classDiagram.htm)
UML 2 Class Diagram Guidelines (http://
www.agilemodeling.com/style/classDia
gram.htm)
IBM Class diagram Introduction (http://w
ww.ibm.com/developerworks/rational/li
brary/content/RationalEdge/sep04/bel
l/)
OMG UML 2.2 specification documents
(http://www.omg.org/spec/UML/2.2/)
UML 2 Class Diagrams (http://www.uml-
diagrams.org/class-diagrams.html)
Retrieved from
"https://en.wikipedia.org/w/index.php?
title=Class_diagram&oldid=1187264970"