SlideShare une entreprise Scribd logo
1  sur  19
Disclaimer: This presentation is prepared by trainees of
baabtra as a part of mentoring program. This is not official
document of baabtra –Mentoring Partner
Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt .
Ltd
Class diagram, Use case and
Sequence diagram
Subhin P.V
111subru@gmail.com
www.facebook.com/subhinv
elayudhan
twitter.com/111subru
in.linkedin.com/in/Subhin P V
8129076036
CLASSES
• A class is 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 in fields
– exposes its behavior through methods
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
Person
- eat(): void
- sleep(): void
- work(): void
-play():String
+ name : String
# address : String
# birthDate : Date
/ age : Date
- ssn : int
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(){
}
}
USE CASE
• a use case is 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 a Use
Case Diagram
USE CASE DIAGRAM
• It is a UML diagram.
• A use case diagram at its simplest is a
representation of a user's interaction with the
system and depicting the specifications of
a use case.
• A use case diagram can portray the different
types of users of a system and the various
ways that they interact with the system.
USE CASE DIAGRAM
Use case diagram of a restaurant
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..)
Diagram: A sequence diagram of request and response between a
patient and a receptionist
SEQUENCE DIAGRAM SYNTAX
SEQUENCE DIAGRAM(contd..)
• COMPONENTS OF A SEQUENCE DIAGRAM
Sequence Diagram
MessagesActive objects
Activation Box Lifeline
Control
Information
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
• Focus of control (activation box)
– Means the object is active and using resources during
that time period
• Control information
– Shows the control flow in the system
– Creation and destruction of an object through
<<create>> and <<destroy>>
If this presentation helped you, please visit our
page facebook.com/baabtra and like it.
Thanks in advance.
www.baabtra.com | www.massbaab.com |www.baabte.com
Contact Us

Contenu connexe

Tendances

Software Quality Attributes
Software Quality AttributesSoftware Quality Attributes
Software Quality Attributes
Hayim Makabee
 
Use case diagrams 2014
Use case diagrams 2014Use case diagrams 2014
Use case diagrams 2014
Inge Powell
 
08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS
koolkampus
 
Lecture no 8 use case modeling and use case diagrams
Lecture no 8 use case modeling and use case diagramsLecture no 8 use case modeling and use case diagrams
Lecture no 8 use case modeling and use case diagrams
naveed428
 
Library management sytem
Library management sytemLibrary management sytem
Library management sytem
ashu6
 

Tendances (20)

Sequence diagram
Sequence diagramSequence diagram
Sequence diagram
 
Sequence diagram- UML diagram
Sequence diagram- UML diagramSequence diagram- UML diagram
Sequence diagram- UML diagram
 
The Ultimate Sequence Diagram Tutorial
The Ultimate Sequence Diagram TutorialThe Ultimate Sequence Diagram Tutorial
The Ultimate Sequence Diagram Tutorial
 
Fundamentals of Database Systems Questions and Answers
Fundamentals of Database Systems Questions and AnswersFundamentals of Database Systems Questions and Answers
Fundamentals of Database Systems Questions and Answers
 
Introduction to Rational Rose
Introduction to Rational RoseIntroduction to Rational Rose
Introduction to Rational Rose
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
 
Software Quality Attributes
Software Quality AttributesSoftware Quality Attributes
Software Quality Attributes
 
Use Case Diagram.pptx
Use Case Diagram.pptxUse Case Diagram.pptx
Use Case Diagram.pptx
 
Use case diagrams 2014
Use case diagrams 2014Use case diagrams 2014
Use case diagrams 2014
 
Unit 2
Unit 2Unit 2
Unit 2
 
08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS
 
Activity diagram
Activity diagramActivity diagram
Activity diagram
 
Domain model Refinement
Domain model RefinementDomain model Refinement
Domain model Refinement
 
Class diagram
Class diagramClass diagram
Class diagram
 
Lecture no 8 use case modeling and use case diagrams
Lecture no 8 use case modeling and use case diagramsLecture no 8 use case modeling and use case diagrams
Lecture no 8 use case modeling and use case diagrams
 
Object Oriented Design
Object Oriented DesignObject Oriented Design
Object Oriented Design
 
Use case diagram
Use case diagramUse case diagram
Use case diagram
 
Use case Diagram
Use case DiagramUse case Diagram
Use case Diagram
 
Library management sytem
Library management sytemLibrary management sytem
Library management sytem
 
Use case Diagram
Use case Diagram Use case Diagram
Use case Diagram
 

Similaire à Class diagram, use case and sequence diagram

Lecture#03, uml diagrams
Lecture#03, uml diagramsLecture#03, uml diagrams
Lecture#03, uml diagrams
babak danyal
 
ASP.NET System design 2
ASP.NET System design 2ASP.NET System design 2
ASP.NET System design 2
Sisir Ghosh
 
UML Design Document Training Learn UML .pptx
UML Design Document Training Learn UML .pptxUML Design Document Training Learn UML .pptx
UML Design Document Training Learn UML .pptx
raghavanp4
 
8.Unified Process Modelling.ppt of software engg
8.Unified Process Modelling.ppt  of software engg8.Unified Process Modelling.ppt  of software engg
8.Unified Process Modelling.ppt of software engg
SukhmanSingh91
 
Cs 1023 lec 10 uml (week 3)
Cs 1023 lec 10 uml (week 3)Cs 1023 lec 10 uml (week 3)
Cs 1023 lec 10 uml (week 3)
stanbridge
 

Similaire à Class diagram, use case and sequence diagram (20)

classdiagram.pptx
classdiagram.pptxclassdiagram.pptx
classdiagram.pptx
 
SMD Unit ii
SMD Unit iiSMD Unit ii
SMD Unit ii
 
Lecture#03, uml diagrams
Lecture#03, uml diagramsLecture#03, uml diagrams
Lecture#03, uml diagrams
 
Basic Behavioral Modeling
Basic Behavioral ModelingBasic Behavioral Modeling
Basic Behavioral Modeling
 
ASP.NET System design 2
ASP.NET System design 2ASP.NET System design 2
ASP.NET System design 2
 
UML Design Document Training Learn UML .pptx
UML Design Document Training Learn UML .pptxUML Design Document Training Learn UML .pptx
UML Design Document Training Learn UML .pptx
 
8.Unified Process Modelling.ppt of software engg
8.Unified Process Modelling.ppt  of software engg8.Unified Process Modelling.ppt  of software engg
8.Unified Process Modelling.ppt of software engg
 
Advanced Structural Modeling
Advanced Structural ModelingAdvanced Structural Modeling
Advanced Structural Modeling
 
CASE Tools lab.ppt
CASE Tools lab.pptCASE Tools lab.ppt
CASE Tools lab.ppt
 
Intoduction to uml
Intoduction to umlIntoduction to uml
Intoduction to uml
 
Uml package diagram
Uml package  diagramUml package  diagram
Uml package diagram
 
Analysis
AnalysisAnalysis
Analysis
 
Cs 1023 lec 10 uml (week 3)
Cs 1023 lec 10 uml (week 3)Cs 1023 lec 10 uml (week 3)
Cs 1023 lec 10 uml (week 3)
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagrams
 
UML tutorial
UML tutorialUML tutorial
UML tutorial
 
Analysis modeling
Analysis modelingAnalysis modeling
Analysis modeling
 
Requirements modeling
Requirements modelingRequirements modeling
Requirements modeling
 
Uml - An Overview
Uml - An OverviewUml - An Overview
Uml - An Overview
 
OOAD UNIT I UML DIAGRAMS
OOAD UNIT I UML DIAGRAMSOOAD UNIT I UML DIAGRAMS
OOAD UNIT I UML DIAGRAMS
 
uml.ppt
uml.pptuml.ppt
uml.ppt
 

Plus de baabtra.com - No. 1 supplier of quality freshers

Plus de baabtra.com - No. 1 supplier of quality freshers (20)

Agile methodology and scrum development
Agile methodology and scrum developmentAgile methodology and scrum development
Agile methodology and scrum development
 
Best coding practices
Best coding practicesBest coding practices
Best coding practices
 
Core java - baabtra
Core java - baabtraCore java - baabtra
Core java - baabtra
 
Acquiring new skills what you should know
Acquiring new skills   what you should knowAcquiring new skills   what you should know
Acquiring new skills what you should know
 
Baabtra.com programming at school
Baabtra.com programming at schoolBaabtra.com programming at school
Baabtra.com programming at school
 
99LMS for Enterprises - LMS that you will love
99LMS for Enterprises - LMS that you will love 99LMS for Enterprises - LMS that you will love
99LMS for Enterprises - LMS that you will love
 
Php sessions & cookies
Php sessions & cookiesPhp sessions & cookies
Php sessions & cookies
 
Php database connectivity
Php database connectivityPhp database connectivity
Php database connectivity
 
Chapter 6 database normalisation
Chapter 6  database normalisationChapter 6  database normalisation
Chapter 6 database normalisation
 
Chapter 5 transactions and dcl statements
Chapter 5  transactions and dcl statementsChapter 5  transactions and dcl statements
Chapter 5 transactions and dcl statements
 
Chapter 4 functions, views, indexing
Chapter 4  functions, views, indexingChapter 4  functions, views, indexing
Chapter 4 functions, views, indexing
 
Chapter 3 stored procedures
Chapter 3 stored proceduresChapter 3 stored procedures
Chapter 3 stored procedures
 
Chapter 2 grouping,scalar and aggergate functions,joins inner join,outer join
Chapter 2  grouping,scalar and aggergate functions,joins   inner join,outer joinChapter 2  grouping,scalar and aggergate functions,joins   inner join,outer join
Chapter 2 grouping,scalar and aggergate functions,joins inner join,outer join
 
Chapter 1 introduction to sql server
Chapter 1 introduction to sql serverChapter 1 introduction to sql server
Chapter 1 introduction to sql server
 
Chapter 1 introduction to sql server
Chapter 1 introduction to sql serverChapter 1 introduction to sql server
Chapter 1 introduction to sql server
 
Microsoft holo lens
Microsoft holo lensMicrosoft holo lens
Microsoft holo lens
 
Blue brain
Blue brainBlue brain
Blue brain
 
5g
5g5g
5g
 
Aptitude skills baabtra
Aptitude skills baabtraAptitude skills baabtra
Aptitude skills baabtra
 
Gd baabtra
Gd baabtraGd baabtra
Gd baabtra
 

Dernier

Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
ssuserdda66b
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Dernier (20)

How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 

Class diagram, use case and sequence diagram

  • 1.
  • 2. Disclaimer: This presentation is prepared by trainees of baabtra as a part of mentoring program. This is not official document of baabtra –Mentoring Partner Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt . Ltd
  • 3. Class diagram, Use case and Sequence diagram Subhin P.V 111subru@gmail.com www.facebook.com/subhinv elayudhan twitter.com/111subru in.linkedin.com/in/Subhin P V 8129076036
  • 4. CLASSES • A class is 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 in fields – exposes its behavior through methods
  • 5. 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.
  • 7. An example of CLASS DIAGRAM Person - eat(): void - sleep(): void - work(): void -play():String + name : String # address : String # birthDate : Date / age : Date - ssn : int 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(){ } }
  • 8. USE CASE • a use case is 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 a Use Case Diagram
  • 9. USE CASE DIAGRAM • It is a UML diagram. • A use case diagram at its simplest is a representation of a user's interaction with the system and depicting the specifications of a use case. • A use case diagram can portray the different types of users of a system and the various ways that they interact with the system.
  • 10. USE CASE DIAGRAM Use case diagram of a restaurant
  • 11. 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
  • 12. SEQUENCE DIAGRAM(contd..) Diagram: A sequence diagram of request and response between a patient and a receptionist
  • 14. SEQUENCE DIAGRAM(contd..) • COMPONENTS OF A SEQUENCE DIAGRAM Sequence Diagram MessagesActive objects Activation Box Lifeline Control Information
  • 15. 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
  • 16. SEQUENCE DIAGRAM (other components) • Lifeline – Denotes the life of actors/objects over time during a sequence • Focus of control (activation box) – Means the object is active and using resources during that time period • Control information – Shows the control flow in the system – Creation and destruction of an object through <<create>> and <<destroy>>
  • 17.
  • 18. If this presentation helped you, please visit our page facebook.com/baabtra and like it. Thanks in advance. www.baabtra.com | www.massbaab.com |www.baabte.com