11

Click here to load reader

Uml BSE

Embed Size (px)

DESCRIPTION

UML

Citation preview

Page 1: Uml BSE

UMLPrepared By: MUHAMMAD HAMZA KHAN

Page 2: Uml BSE

What is UML?

UML stands for Unified Modeling Language

UML is a diagramming language designed for Object-Oriented programming

UML can be describe:

the organization of a program

how a program executes

how a program is used

how a program is deployed over a network

…and more

Page 3: Uml BSE

Why we use UML?

Use graphical notation: more clearly than natural language

(imprecise) and code (too detailed).

Help acquire an overall view of a system.

UML is not dependent on any one language or technology.

UML moves us from breakup to standardization.

Page 4: Uml BSE

Types of UML

Class diagram

Component diagram

Development diagram

Object diagram

Package diagram

Profile diagram

Composite structure diagram

Use case diagram

Activity diagram

State machine diagram

Sequence diagram

Communication diagram

Interaction overview diagram

Timing diagram

Page 5: Uml BSE

Class Diagram

A class diagram shows classes, interfaces, and their

relationships

It shows the classes in a system, attributes and operations of

each class and the relationship between each class.

ClassName

attributes

operations

Page 6: Uml BSE

Class Name

The name of the class is the

only required tag in the

graphical representation of a

class.

It always appears in the top-

most compartment.

ClassName

attributes

operations

Page 7: Uml BSE

Class Attributes

An attribute is a named property

of a class that describes the object

being modeled. In the class

diagram, attributes appear in the

second compartment just below

the name-compartment.

Person

name :

address :

Birthdate :

Page 8: Uml BSE

Class Attributes (Cont’d)

Attributes are usually listed in the

form:

attributeName : Type

Person

name : string

address : string

birthdate : int

Page 9: Uml BSE

Class Attributes (Cont’d)

Attributes can be:

+ public

# protected

- private

Person

+ name : string

-address : string

#birthdate : int

Page 10: Uml BSE

Class Operations

Operations describe the class

behavior

and appear in the third

compartment.

Person

name : string

address : string

birthdate : int

+Eat():void

+Sleep():void

+Work():void

+Play():void

Page 11: Uml BSE

THANK YOU