SlideShare a Scribd company logo
1 of 29
Title Layout
Course: CSE214 (Object Oriented Programming)
Course Teacher: Ms. Rabeya Akhter (RA)
Section: P Depertment: CSE(43 Batch)
Group Members:
01. Md. Ashaf Uddaula (161-15-7473)
02. Alamin Hossain (161-15-7483)
03. Md. Khasrur Rahman (161-15-7214)
04. Md. Eram Talukder (161-15-7485)
05. Ijaz Ahmed Utsa (161-15-7180)
2
What Is Modeling?
• A model is a simplification with a purpose
• Use precisely defined notation to describe and simplify a
complex and interesting structure, phenomenon, or
relationship
• Real-world examples
• The solar system model
• Mathematical models
3
What Is Modeling? (cont’d)
• Simplification
• Less complex, more accessible
• Varying perspectives
• Describe the system from different perspectives
• Help developers manage complexity
• Common notation
• To facilitate communication
• Allows developers to combine their efforts and to work in parallel
4
UML
• Unified Modeling Language
• A language for specifying, visualizing, constructing, and documenting the
artifacts of software systems
• A set of precise notations
• Helps developers create ideas and communicate them
5
UML
The Basics
Abstraction
• A simplification or model of a complex concept, process, or real-world
object
• Help people understand something at an appropriate level
• Different people would build different abstractions for the same
concept
• Highlight the characteristics and behavior of something that is too
complex to understand in its entirety
6
UML
The Basics
Encapsulation
• Highlight the important aspects of an object
• Hide the cumbersome internal details of the object
• Make the system easier to understand and to reuse
• Make a system more extendible
7
UML
The Basics
Union of all Modeling Languages
Use case diagrams
Class diagrams
Object diagrams
Sequence diagrams
Collaboration diagrams
Statechart diagrams
Activity diagrams
Component diagrams
 Deployment diagrams
….
8
UML
The Basics
• Object
• A particular and finite element in a large model
• Visible or invisible
• Persistent or transient
• State: describes characteristics and current condition
• Behavior: defines the actions that other objects may perform on the
object
• Method: a service or responsibility that an object exposes to other
objects
• Each has a unique identifier
• Limited responsibility and cooperation
myCar : ToyotaTercel
9
UML
The Basics
Dependency Association
Aggregation Composition
Relationships between
objects
10
Relationships between objects
Dependency
• Short-term dependency
• An object may create another object as part of a method, ask it to
perform some function, and then forget about it
11
Relationships between objects
Association
• An object keeps a reference to another object and can call the object’s,
methods as it needs them
• An object may receive an object as a parameter to a configuration
method and keep a reference to the object
12
Relationships between objects
Aggregation
• An object is part of a greater whole
• The contained object may participate in more than one aggregation
relationship, and exists independently of the whole
13
Relationships between objects
Composition
• An object is owned by a greater whole
• The contained object may not participate in more than one composition
relationship and cannot exist independently of the whole
14
UML
The Basics
• Class
• A group of objects that have something in common
• Captures a particular abstraction
• Provides a template for object creation
• Each objects created from a class is identical in
• The type of data they can hold
• The type and number of objects they know about
• The logic for any behavior they provide
+attackKenDoll()
-name : String
-rank : String
#carryingRifle : Boolean
ToySoldier
15
UML
The Basics
• Class Attributes
-Represent the named properties of a UML class
-UML class can have many attributes of different names
-Attributes name is generally a short noun or a noun phrase written in lower Case
first text.
-Attribute decleration may include visility , type
and initial value : +attributesName: type = initial-value
16
UML
The Basics
Class Operations
-Represent named services provided by a UML class
-UML class can have many operations of different names
-Operation name is generally a short verb or a verb phrase written in
lowCase-first text
-Operation may include visibility , parameters and return type:
+opName(param1 : type = initial_value) :return_type
17
UML
The Basics
Class Visibility
-Three levels of class ,attribute and operation visibility:
 private(-), available only to the current class
Protected(#) , available to the current and inherited classes
Public(+), available to the current and other classes.
18
UML
The Basics
• Class Generalization
Represent a relation between a parent (a more abstract class ) and a child ( a
more specific class)
Generally referred to as a “ is -a –kind-of” relationship
Child object may be used instead of parent objects since they share
attributes and operations: the opposite is not true
19
Relationships between Classes
Generalization: an inheritance relationship
 inheritance between classes
 interface implementation
Association: a usage relationship
 Dependency
 Aggregation
 Composition
20
Generalization relationships
• Inheritance : class B is a Class A (or class A is extended by class B)
• Realization : class B realizes Class A (or class A is realized by class B)
21
Associational Relationship
• associational (usage) relationships
1. multiplicity(how many are used)
* ⇒0, 1, or more
1⇒1 exactly
2..4⇒between 2 and 4, inclusive
3..*⇒3 or more
2. name(what relationship the objects have)
3. navigability(direction)
22
Associational Relationship
• Dependency : class A uses class B
• Aggregation : class A has a class B
• Composition : class A owns a class B
23
Multiplicity of associations
One-to One
*each student must carry exactly one ID card
One-to-many
*one rectangle list van contain many rectangles
24
Class diagram example:
video store
25
Modeling Software Systems with the UML
• UML enables building a single coherent model that describes a software system
from several perspectives
• Internal consistency
• Distinct views
• Participants can use the same model and speak the same language throughout
the development process
26
Modeling Process
1. The developers and customers use the UML to understand the problem
from the customer’s point of view
2. The developers use UML to understand the problem from their own point of
view
3. The UML model is used as a resource by the implementers of the system
27
Modeling Process (cont’d)
• Requirements gathering
• Analysis
• Technology selection
• Architecture
• Design and implementation
28
Design and Implementation
• Design
• Use all the results from the previous steps
• Create a model of objects that interact to provide the system’s functionality
• The last chance to validate the solution
• Implementation
• Write the code according to the design
END
29

More Related Content

What's hot

Java class,object,method introduction
Java class,object,method introductionJava class,object,method introduction
Java class,object,method introductionSohanur63
 
Class diagrams
Class diagramsClass diagrams
Class diagramsNadia_Nazeer
 
1 unit (oops)
1 unit (oops)1 unit (oops)
1 unit (oops)Jay Patel
 
jQuery -Chapter 2 - Selectors and Events
jQuery -Chapter 2 - Selectors and Events jQuery -Chapter 2 - Selectors and Events
jQuery -Chapter 2 - Selectors and Events WebStackAcademy
 
Class and Objects in Java
Class and Objects in JavaClass and Objects in Java
Class and Objects in JavaSpotle.ai
 
Object-oriented Programming-with C#
Object-oriented Programming-with C#Object-oriented Programming-with C#
Object-oriented Programming-with C#Doncho Minkov
 
Java Lambda Expressions.pptx
Java Lambda Expressions.pptxJava Lambda Expressions.pptx
Java Lambda Expressions.pptxSameerAhmed593310
 
servlet in java
servlet in javaservlet in java
servlet in javasowfi
 
Presentazione primi principi oop
Presentazione primi principi oopPresentazione primi principi oop
Presentazione primi principi oopyrcorr
 
Socket programming in Java (PPTX)
Socket programming in Java (PPTX)Socket programming in Java (PPTX)
Socket programming in Java (PPTX)UC San Diego
 
JavaScript - Chapter 12 - Document Object Model
  JavaScript - Chapter 12 - Document Object Model  JavaScript - Chapter 12 - Document Object Model
JavaScript - Chapter 12 - Document Object ModelWebStackAcademy
 
Architecture of .net framework
Architecture of .net frameworkArchitecture of .net framework
Architecture of .net frameworkThen Murugeshwari
 

What's hot (20)

Object Oriented Design
Object Oriented DesignObject Oriented Design
Object Oriented Design
 
Java class,object,method introduction
Java class,object,method introductionJava class,object,method introduction
Java class,object,method introduction
 
Method overloading
Method overloadingMethod overloading
Method overloading
 
Oops
OopsOops
Oops
 
Class diagrams
Class diagramsClass diagrams
Class diagrams
 
1 unit (oops)
1 unit (oops)1 unit (oops)
1 unit (oops)
 
jQuery -Chapter 2 - Selectors and Events
jQuery -Chapter 2 - Selectors and Events jQuery -Chapter 2 - Selectors and Events
jQuery -Chapter 2 - Selectors and Events
 
Class and Objects in Java
Class and Objects in JavaClass and Objects in Java
Class and Objects in Java
 
Ooad unit – 1 introduction
Ooad unit – 1 introductionOoad unit – 1 introduction
Ooad unit – 1 introduction
 
Database programming
Database programmingDatabase programming
Database programming
 
Object-oriented Programming-with C#
Object-oriented Programming-with C#Object-oriented Programming-with C#
Object-oriented Programming-with C#
 
Java Lambda Expressions.pptx
Java Lambda Expressions.pptxJava Lambda Expressions.pptx
Java Lambda Expressions.pptx
 
Foss manual (1)
Foss manual (1)Foss manual (1)
Foss manual (1)
 
servlet in java
servlet in javaservlet in java
servlet in java
 
UML Diagrams
UML DiagramsUML Diagrams
UML Diagrams
 
Uml class-diagram
Uml class-diagramUml class-diagram
Uml class-diagram
 
Presentazione primi principi oop
Presentazione primi principi oopPresentazione primi principi oop
Presentazione primi principi oop
 
Socket programming in Java (PPTX)
Socket programming in Java (PPTX)Socket programming in Java (PPTX)
Socket programming in Java (PPTX)
 
JavaScript - Chapter 12 - Document Object Model
  JavaScript - Chapter 12 - Document Object Model  JavaScript - Chapter 12 - Document Object Model
JavaScript - Chapter 12 - Document Object Model
 
Architecture of .net framework
Architecture of .net frameworkArchitecture of .net framework
Architecture of .net framework
 

Viewers also liked

Introduction to Modeling Java and UML
Introduction to Modeling Java and UMLIntroduction to Modeling Java and UML
Introduction to Modeling Java and UMLDang Tuan
 
Lecture 1 uml with java implementation
Lecture 1 uml with java implementationLecture 1 uml with java implementation
Lecture 1 uml with java implementationthe_wumberlog
 
UML for Java Developers
UML for Java DevelopersUML for Java Developers
UML for Java Developerselliando dias
 
UNDERSTANDING OOAD AND DESIGN PATTERNS USING UML AND JAVA-TRAINING WORKSHOP
UNDERSTANDING OOAD AND DESIGN PATTERNS USING UML AND JAVA-TRAINING WORKSHOPUNDERSTANDING OOAD AND DESIGN PATTERNS USING UML AND JAVA-TRAINING WORKSHOP
UNDERSTANDING OOAD AND DESIGN PATTERNS USING UML AND JAVA-TRAINING WORKSHOPAmit Midha
 
Digital Bangladesh // Prospects • Goals • Challenges
Digital Bangladesh // Prospects • Goals • ChallengesDigital Bangladesh // Prospects • Goals • Challenges
Digital Bangladesh // Prospects • Goals • ChallengesShakib Shikto
 
Networking in Java
Networking in JavaNetworking in Java
Networking in JavaTushar B Kute
 
Bangladesh studies presentation
Bangladesh studies presentationBangladesh studies presentation
Bangladesh studies presentationRezwan Arefin
 
Network programming in Java
Network programming in JavaNetwork programming in Java
Network programming in JavaTushar B Kute
 
All About Bangladesh-PowerPoint Presentation
All About Bangladesh-PowerPoint PresentationAll About Bangladesh-PowerPoint Presentation
All About Bangladesh-PowerPoint PresentationEingel Calayag
 
Bangladesh final ppt
Bangladesh final pptBangladesh final ppt
Bangladesh final pptJosephite
 
Presentation on Bangladesh
Presentation on BangladeshPresentation on Bangladesh
Presentation on BangladeshTawhid Rahman
 
Presentation on bangladesh by roni
Presentation on bangladesh by roniPresentation on bangladesh by roni
Presentation on bangladesh by roniRoni Bhowmik
 
Uml - An Overview
Uml - An OverviewUml - An Overview
Uml - An OverviewRaj Thilak S
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagramsbarney92
 

Viewers also liked (16)

The Political History Of Bangladesh
The Political History Of BangladeshThe Political History Of Bangladesh
The Political History Of Bangladesh
 
Introduction to Modeling Java and UML
Introduction to Modeling Java and UMLIntroduction to Modeling Java and UML
Introduction to Modeling Java and UML
 
Bangladesh studies vision 2041
Bangladesh studies vision 2041Bangladesh studies vision 2041
Bangladesh studies vision 2041
 
Lecture 1 uml with java implementation
Lecture 1 uml with java implementationLecture 1 uml with java implementation
Lecture 1 uml with java implementation
 
UML for Java Developers
UML for Java DevelopersUML for Java Developers
UML for Java Developers
 
UNDERSTANDING OOAD AND DESIGN PATTERNS USING UML AND JAVA-TRAINING WORKSHOP
UNDERSTANDING OOAD AND DESIGN PATTERNS USING UML AND JAVA-TRAINING WORKSHOPUNDERSTANDING OOAD AND DESIGN PATTERNS USING UML AND JAVA-TRAINING WORKSHOP
UNDERSTANDING OOAD AND DESIGN PATTERNS USING UML AND JAVA-TRAINING WORKSHOP
 
Digital Bangladesh // Prospects • Goals • Challenges
Digital Bangladesh // Prospects • Goals • ChallengesDigital Bangladesh // Prospects • Goals • Challenges
Digital Bangladesh // Prospects • Goals • Challenges
 
Networking in Java
Networking in JavaNetworking in Java
Networking in Java
 
Bangladesh studies presentation
Bangladesh studies presentationBangladesh studies presentation
Bangladesh studies presentation
 
Network programming in Java
Network programming in JavaNetwork programming in Java
Network programming in Java
 
All About Bangladesh-PowerPoint Presentation
All About Bangladesh-PowerPoint PresentationAll About Bangladesh-PowerPoint Presentation
All About Bangladesh-PowerPoint Presentation
 
Bangladesh final ppt
Bangladesh final pptBangladesh final ppt
Bangladesh final ppt
 
Presentation on Bangladesh
Presentation on BangladeshPresentation on Bangladesh
Presentation on Bangladesh
 
Presentation on bangladesh by roni
Presentation on bangladesh by roniPresentation on bangladesh by roni
Presentation on bangladesh by roni
 
Uml - An Overview
Uml - An OverviewUml - An Overview
Uml - An Overview
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagrams
 

Similar to UML Modeling in Java

Ooad lab manual
Ooad  lab manualOoad  lab manual
Ooad lab manualPraseela R
 
UML (Hemant rajak)
UML (Hemant rajak)UML (Hemant rajak)
UML (Hemant rajak)hrajak5
 
Unified Modeling Language
Unified Modeling LanguageUnified Modeling Language
Unified Modeling LanguageGiO Friginal
 
1. introduction to uml
1. introduction to uml1. introduction to uml
1. introduction to umlPRABU M
 
SW SEC 1.pptx
SW SEC 1.pptxSW SEC 1.pptx
SW SEC 1.pptxabdohanfi1
 
CS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPT
CS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPTCS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPT
CS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPTleela rani
 
Uml
UmlUml
UmlHavi K
 
Object Oriented Analysis Design using UML
Object Oriented Analysis Design using UMLObject Oriented Analysis Design using UML
Object Oriented Analysis Design using UMLAjit Nayak
 
Object oriented analysis_and_design_v2.0
Object oriented analysis_and_design_v2.0Object oriented analysis_and_design_v2.0
Object oriented analysis_and_design_v2.0Ganapathi M
 
SE18_Lec 06_Object Oriented Analysis and Design
SE18_Lec 06_Object Oriented Analysis and DesignSE18_Lec 06_Object Oriented Analysis and Design
SE18_Lec 06_Object Oriented Analysis and DesignAmr E. Mohamed
 
Class diagram
Class diagramClass diagram
Class diagramLakshmanaD2
 
SE_Lec 06_Object Oriented Analysis and Design
SE_Lec 06_Object Oriented Analysis and DesignSE_Lec 06_Object Oriented Analysis and Design
SE_Lec 06_Object Oriented Analysis and DesignAmr E. Mohamed
 
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 .pptxraghavanp4
 
Object Oriented Design
Object Oriented DesignObject Oriented Design
Object Oriented DesignAravinth NSP
 
Chapter 6 Object Modeling .pptxInformation Technology Project Management
Chapter 6 Object Modeling .pptxInformation Technology Project ManagementChapter 6 Object Modeling .pptxInformation Technology Project Management
Chapter 6 Object Modeling .pptxInformation Technology Project ManagementAxmedMaxamuudYoonis
 
Uml tool tutorial
Uml tool tutorialUml tool tutorial
Uml tool tutorialittkrish
 

Similar to UML Modeling in Java (20)

Ooad lab manual
Ooad  lab manualOoad  lab manual
Ooad lab manual
 
UML (Hemant rajak)
UML (Hemant rajak)UML (Hemant rajak)
UML (Hemant rajak)
 
Unified Modeling Language
Unified Modeling LanguageUnified Modeling Language
Unified Modeling Language
 
1. introduction to uml
1. introduction to uml1. introduction to uml
1. introduction to uml
 
ITSE_10(UML,OO).pptx
ITSE_10(UML,OO).pptxITSE_10(UML,OO).pptx
ITSE_10(UML,OO).pptx
 
SW SEC 1.pptx
SW SEC 1.pptxSW SEC 1.pptx
SW SEC 1.pptx
 
CS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPT
CS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPTCS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPT
CS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPT
 
Uml
UmlUml
Uml
 
Object Oriented Analysis Design using UML
Object Oriented Analysis Design using UMLObject Oriented Analysis Design using UML
Object Oriented Analysis Design using UML
 
Lect1
Lect1Lect1
Lect1
 
Object oriented analysis_and_design_v2.0
Object oriented analysis_and_design_v2.0Object oriented analysis_and_design_v2.0
Object oriented analysis_and_design_v2.0
 
SE18_Lec 06_Object Oriented Analysis and Design
SE18_Lec 06_Object Oriented Analysis and DesignSE18_Lec 06_Object Oriented Analysis and Design
SE18_Lec 06_Object Oriented Analysis and Design
 
Class diagram
Class diagramClass diagram
Class diagram
 
SE_Lec 06_Object Oriented Analysis and Design
SE_Lec 06_Object Oriented Analysis and DesignSE_Lec 06_Object Oriented Analysis and Design
SE_Lec 06_Object Oriented Analysis and Design
 
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
 
Object Oriented Design
Object Oriented DesignObject Oriented Design
Object Oriented Design
 
Chapter 6 Object Modeling .pptxInformation Technology Project Management
Chapter 6 Object Modeling .pptxInformation Technology Project ManagementChapter 6 Object Modeling .pptxInformation Technology Project Management
Chapter 6 Object Modeling .pptxInformation Technology Project Management
 
34. uml
34. uml34. uml
34. uml
 
Uml tool tutorial
Uml tool tutorialUml tool tutorial
Uml tool tutorial
 
UML
UMLUML
UML
 

More from Daffodil International University

Application of numerical integration and differentiation in real life
Application of numerical integration and differentiation in real lifeApplication of numerical integration and differentiation in real life
Application of numerical integration and differentiation in real lifeDaffodil International University
 
AC-Alternative Current & Circuit Analysis ( Full of Information )
AC-Alternative Current & Circuit Analysis ( Full of Information )AC-Alternative Current & Circuit Analysis ( Full of Information )
AC-Alternative Current & Circuit Analysis ( Full of Information )Daffodil International University
 

More from Daffodil International University (16)

Socio-Economic Condition of Sundarbans
Socio-Economic Condition of SundarbansSocio-Economic Condition of Sundarbans
Socio-Economic Condition of Sundarbans
 
Enterprise resource planning software
Enterprise resource planning software Enterprise resource planning software
Enterprise resource planning software
 
Machine learning
Machine learningMachine learning
Machine learning
 
Diabetes
DiabetesDiabetes
Diabetes
 
OSI Reference Model
OSI Reference ModelOSI Reference Model
OSI Reference Model
 
Application of numerical integration and differentiation in real life
Application of numerical integration and differentiation in real lifeApplication of numerical integration and differentiation in real life
Application of numerical integration and differentiation in real life
 
Semiconductor
SemiconductorSemiconductor
Semiconductor
 
Complexity analysis in Algorithms
Complexity analysis in AlgorithmsComplexity analysis in Algorithms
Complexity analysis in Algorithms
 
Statistics and probability
Statistics and probabilityStatistics and probability
Statistics and probability
 
Development & Bangladesh : Achievements & Failures
Development & Bangladesh : Achievements & FailuresDevelopment & Bangladesh : Achievements & Failures
Development & Bangladesh : Achievements & Failures
 
Tree (Data Structure & Discrete Mathematics)
Tree (Data Structure & Discrete Mathematics)Tree (Data Structure & Discrete Mathematics)
Tree (Data Structure & Discrete Mathematics)
 
Data Mining (Predict The Future)
Data Mining (Predict The Future)Data Mining (Predict The Future)
Data Mining (Predict The Future)
 
Solar Power
Solar PowerSolar Power
Solar Power
 
AC-Alternative Current & Circuit Analysis ( Full of Information )
AC-Alternative Current & Circuit Analysis ( Full of Information )AC-Alternative Current & Circuit Analysis ( Full of Information )
AC-Alternative Current & Circuit Analysis ( Full of Information )
 
Li-Fi Technology ( Advanced Technology in Future)
Li-Fi Technology ( Advanced Technology in Future)Li-Fi Technology ( Advanced Technology in Future)
Li-Fi Technology ( Advanced Technology in Future)
 
Graph & Heap in Data Structure (Basic Information)
Graph & Heap in Data Structure (Basic Information)Graph & Heap in Data Structure (Basic Information)
Graph & Heap in Data Structure (Basic Information)
 

Recently uploaded

Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLManishPatel169454
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spaintimesproduction05
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...tanu pandey
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 

Recently uploaded (20)

Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 

UML Modeling in Java

  • 2. Course: CSE214 (Object Oriented Programming) Course Teacher: Ms. Rabeya Akhter (RA) Section: P Depertment: CSE(43 Batch) Group Members: 01. Md. Ashaf Uddaula (161-15-7473) 02. Alamin Hossain (161-15-7483) 03. Md. Khasrur Rahman (161-15-7214) 04. Md. Eram Talukder (161-15-7485) 05. Ijaz Ahmed Utsa (161-15-7180) 2
  • 3. What Is Modeling? • A model is a simplification with a purpose • Use precisely defined notation to describe and simplify a complex and interesting structure, phenomenon, or relationship • Real-world examples • The solar system model • Mathematical models 3
  • 4. What Is Modeling? (cont’d) • Simplification • Less complex, more accessible • Varying perspectives • Describe the system from different perspectives • Help developers manage complexity • Common notation • To facilitate communication • Allows developers to combine their efforts and to work in parallel 4
  • 5. UML • Unified Modeling Language • A language for specifying, visualizing, constructing, and documenting the artifacts of software systems • A set of precise notations • Helps developers create ideas and communicate them 5
  • 6. UML The Basics Abstraction • A simplification or model of a complex concept, process, or real-world object • Help people understand something at an appropriate level • Different people would build different abstractions for the same concept • Highlight the characteristics and behavior of something that is too complex to understand in its entirety 6
  • 7. UML The Basics Encapsulation • Highlight the important aspects of an object • Hide the cumbersome internal details of the object • Make the system easier to understand and to reuse • Make a system more extendible 7
  • 8. UML The Basics Union of all Modeling Languages Use case diagrams Class diagrams Object diagrams Sequence diagrams Collaboration diagrams Statechart diagrams Activity diagrams Component diagrams  Deployment diagrams …. 8
  • 9. UML The Basics • Object • A particular and finite element in a large model • Visible or invisible • Persistent or transient • State: describes characteristics and current condition • Behavior: defines the actions that other objects may perform on the object • Method: a service or responsibility that an object exposes to other objects • Each has a unique identifier • Limited responsibility and cooperation myCar : ToyotaTercel 9
  • 10. UML The Basics Dependency Association Aggregation Composition Relationships between objects 10
  • 11. Relationships between objects Dependency • Short-term dependency • An object may create another object as part of a method, ask it to perform some function, and then forget about it 11
  • 12. Relationships between objects Association • An object keeps a reference to another object and can call the object’s, methods as it needs them • An object may receive an object as a parameter to a configuration method and keep a reference to the object 12
  • 13. Relationships between objects Aggregation • An object is part of a greater whole • The contained object may participate in more than one aggregation relationship, and exists independently of the whole 13
  • 14. Relationships between objects Composition • An object is owned by a greater whole • The contained object may not participate in more than one composition relationship and cannot exist independently of the whole 14
  • 15. UML The Basics • Class • A group of objects that have something in common • Captures a particular abstraction • Provides a template for object creation • Each objects created from a class is identical in • The type of data they can hold • The type and number of objects they know about • The logic for any behavior they provide +attackKenDoll() -name : String -rank : String #carryingRifle : Boolean ToySoldier 15
  • 16. UML The Basics • Class Attributes -Represent the named properties of a UML class -UML class can have many attributes of different names -Attributes name is generally a short noun or a noun phrase written in lower Case first text. -Attribute decleration may include visility , type and initial value : +attributesName: type = initial-value 16
  • 17. UML The Basics Class Operations -Represent named services provided by a UML class -UML class can have many operations of different names -Operation name is generally a short verb or a verb phrase written in lowCase-first text -Operation may include visibility , parameters and return type: +opName(param1 : type = initial_value) :return_type 17
  • 18. UML The Basics Class Visibility -Three levels of class ,attribute and operation visibility:  private(-), available only to the current class Protected(#) , available to the current and inherited classes Public(+), available to the current and other classes. 18
  • 19. UML The Basics • Class Generalization Represent a relation between a parent (a more abstract class ) and a child ( a more specific class) Generally referred to as a “ is -a –kind-of” relationship Child object may be used instead of parent objects since they share attributes and operations: the opposite is not true 19
  • 20. Relationships between Classes Generalization: an inheritance relationship  inheritance between classes  interface implementation Association: a usage relationship  Dependency  Aggregation  Composition 20
  • 21. Generalization relationships • Inheritance : class B is a Class A (or class A is extended by class B) • Realization : class B realizes Class A (or class A is realized by class B) 21
  • 22. Associational Relationship • associational (usage) relationships 1. multiplicity(how many are used) * ⇒0, 1, or more 1⇒1 exactly 2..4⇒between 2 and 4, inclusive 3..*⇒3 or more 2. name(what relationship the objects have) 3. navigability(direction) 22
  • 23. Associational Relationship • Dependency : class A uses class B • Aggregation : class A has a class B • Composition : class A owns a class B 23
  • 24. Multiplicity of associations One-to One *each student must carry exactly one ID card One-to-many *one rectangle list van contain many rectangles 24
  • 26. Modeling Software Systems with the UML • UML enables building a single coherent model that describes a software system from several perspectives • Internal consistency • Distinct views • Participants can use the same model and speak the same language throughout the development process 26
  • 27. Modeling Process 1. The developers and customers use the UML to understand the problem from the customer’s point of view 2. The developers use UML to understand the problem from their own point of view 3. The UML model is used as a resource by the implementers of the system 27
  • 28. Modeling Process (cont’d) • Requirements gathering • Analysis • Technology selection • Architecture • Design and implementation 28
  • 29. Design and Implementation • Design • Use all the results from the previous steps • Create a model of objects that interact to provide the system’s functionality • The last chance to validate the solution • Implementation • Write the code according to the design END 29