[go: up one dir, main page]

0% found this document useful (0 votes)
306 views1 page

ER Diagrams - Cheat Sheet

Class diagrams in UML show the structure of a system by displaying classes, their attributes, operations, and relationships among objects. An entity represents a thing that exists physically or logically, like a company or computer, while a relationship captures how entities relate to each other. Entities and relationships can have attributes. There are different types of relationships between classes like association, aggregation, composition, inheritance, and dependency.

Uploaded by

Ezequiel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
306 views1 page

ER Diagrams - Cheat Sheet

Class diagrams in UML show the structure of a system by displaying classes, their attributes, operations, and relationships among objects. An entity represents a thing that exists physically or logically, like a company or computer, while a relationship captures how entities relate to each other. Entities and relationships can have attributes. There are different types of relationships between classes like association, aggregation, composition, inheritance, and dependency.

Uploaded by

Ezequiel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Software engineering Cheat Sheet

by Devdn via cheatography.com/172973/cs/36343/

ER model UML diagrams Class diagram

An entity is a thing that exists either class a type of static structure diagram
physically or logically. Entities diagram that describes the structure of a
can be thought of as nouns: a company, a system by showing the system's
computer. classes, their attrib​​utes, operat​​‐
A relati​onship captures how entities are ions, and the relati​​on​ships
related to one another. among objects.
Relati​onships can be thought of as verbs, object shows a complete or partial view
linking two or more nouns. diagram of the system at a given moment
Entities and relati​onships can both have Three compar​​tments of class diagram:-
of time
attrib​utes. Name of the class
domain conceptual model of the domain
Attributes of the class
model that incorp​​orates both: behaviour
Instan​​ce​-​level r/s in class diagrams Methods of the class
and data
dependency connection between
Class visibility diagram
dependent and indepe​​ndent UML relations notation
model elements; exists when + public
changes to one element may - private
cause changes in dependent # protected
element; this relation in uni-
/ derived
di​​re​c​t​ional
~ package
associ​ation associ​​ation is a relati​​onship
between two classes when, To specify the visibility of a class member
that allows one instance to (i.e. any attribute or method), these
perform an action on behalf notations must be placed before the
of another member's name

aggreg​​ation aggreg​​ation is a variant of class level relati​onship


"has a" relati​​on​ship; it can
inheri​​‐ implements "is a" relati​​on​ship;
occur when a class is a
tance
collection of other classes
realiz​​‐ relati​​onship between component
compos​​ition more specific version of
ation and it's interface
aggreg​​ation; when container
destroyed every insance if
general relati​onship
contains will be destroyed as
well; compos​​ition unlike dependency weaker form of bond that

aggreg​​ation is a "​​wh​o​l​e-​​par​​t" indicates that one class is

relati​​onship dependent on the other; one


class depends on another
Both aggreg​​ation and compos​​ition are types
when the indepe​​ndent class
of associ​​ation between classes. The
is a parameter or local
aggreg​​ation relati​​onship is often "​​ca​t​a​lo​​g"
variable
contai​​nment to distin​​guish it from compos​​it​‐
ion's "​​ph​y​s​ic​​al" contai​​nment.

By Devdn Not published yet. Sponsored by Readable.com


cheatography.com/devdn/ Last updated 3rd January, 2023. Measure your website readability!
Page 1 of 1. https://readable.com

You might also like