Beruflich Dokumente
Kultur Dokumente
CLASSES
Aclassis the blueprint from which
individual objects are created.
A class is a description of a set of objects
that share the same attributes,
operations, relationships, and semantics.
Class contains Attributes and Methods.
A class object can be created to access
class methods.
An object stores its state infields
exposes its behavior throughmethods
CLASS DIAGRAM
Class Diagram is a pictorial
representation of a Class for better
understanding of a class
Graphically, a class is rendered as a
rectangle, usually including its name,
attributes, and operations in
separate, designated compartments.
CLASS DIAGRAM
CLASS NAME
ATTRIBUTES
METHODS
An example of CLASS
DIAGRAM
public class Person{
public String name;
protected String
address;
protected Date
birthDate;
derived Date age;
private int ssn;
void eat(){
}
void sleep(){
}
void work(){
}
String play(){
}
}
Person
+ name
: String
# address : String
# birthDate : Date
/ age
: Date
- ssn
: int
- eat(): void
- sleep(): void
- work(): void
-play():String
USE CASE
ause caseis a list of steps, typically
defining interactions between a role
(actor) and a system, to achieve a
goal.
The actor can be a human or an
external system.
the relationships between all (or a
set of) the use cases and actors are
represented in aUse Case Diagram
SEQUENCE DIAGRAM
Generally show the sequence of
events that occur.
Illustrates the objects that participate
in a use case and the messages that
pass between them over time for one
use case
SEQUENCE
DIAGRAM(contd..)
SEQUENCE DIAGRAM
SYNTAX
SEQUENCE
DIAGRAM(contd..)
COMPONENTS OF A SEQUENCE
DIAGRAM
Sequence
Diagram
Active objects
Control
Information
Messages
Activation Box
Lifeline
SEQUENCE DIAGRAM
(important components)
Active Objects:
Any objects that play a role in the system
Can be any object or class that is valid within the
system
Can be an Actor that is external to the system
and derives benefits from the system
Messages:
Used to illustrate communication between
different active objects.
Used when an object needs
to activate a process of a different object
to give information to another object
SEQUENCE DIAGRAM
(other components)
Lifeline
Denotes the life of actors/objects over time
during a sequence
Control information
Shows the control flow in the system
Creation and destruction of an object through
<<create>> and <<destroy>>
THANK
YOU
Thanks in advance.
www.baabtra.com|www.massbaab.com|www.baabte.com
Contact Us