SlideShare a Scribd company logo
1 of 39
Object Oriented
Analysis and
Design L10
IT1206
IT1206 - Institute of Technology, University of Moratuwa
Sameera Gunathilaka - OOAD
1
Sameera
Gunathilaka
Lead Software
Engineer
ERP Technical
Consultant
Types of UML
Diagrams
(Modelling Types)
Structural UML
diagrams
Package diagram
Object diagram
Component diagram
Composite structure
diagram
Deployment diagram
Behavioural UML
diagrams
Activity diagram
Sequence diagram
Use case diagram
State diagram
Communication diagram
Interaction overview
diagram
Timing diagram
Recap: What is a Class?
• A Class is a blueprint(template) for an
object
• We use classes to create objects
• Classes describe the type of objects,
while objects are usable instances of
classes
• Objects have states and behaviours
IT1206 - Institute of Technology, University of Moratuwa
Sameera Gunathilaka - OOAD 3
Example
A dog has - color,
name, breed as well
as behaviors -
wagging, barking,
eating. An object is
an instance of a class.
IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka -
OOAD 4
UML Class
Notation
• Class encapsulates: attributes (state) and operations (behaviour)
• attribute has a type
• operation has a signature
IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka -
OOAD 5
Example
IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka -
OOAD 6
Class Visibility
• + denotes public attributes or operations
• - denotes private attributes or operations
• # denotes protected attributes or operations
IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka -
OOAD 7
Parameter
Directionality
• Direction: OUT or INOUT or IN
• It specifies its direction with respect to the caller
IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka -
OOAD 8
Perspectives
of Class
Diagram
IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 9
Focus of this course: Conceptual
Relationships
between
classes
IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 11
Strength of
Relationships • Most weakest relationship: Dependency
• Most Strongest relationship: Inheritance
12
IT1206 - Institute of Technology, University of Moratuwa
Sameera Gunathilaka - OOAD
Dependency
13
•A uses B
•Changing B will affect the A
IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD
Dependency
example
• Cart class depend on the Product class
• Cart uses Products
• Changing the Product will affect the Cart
• Cart class depends on the Product class
IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka -
OOAD 14
Associations
15
• Connects one instance of a class
with an instance of another class
• Stronger relationship than
Dependency
• An Employee works for a Company
Direction of Association
Unary Association vs Binary Association
IT1206 - Institute of Technology, University of Moratuwa
Sameera Gunathilaka - OOAD
16
Unary Associations
• Class A knows Class B
• Class B knows nothing about Class A
IT1206 - Institute of Technology, University of Moratuwa
Sameera Gunathilaka - OOAD
17
Unary Association
IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka -
OOAD 18
IT1206 - Institute of Technology, University of Moratuwa
Sameera Gunathilaka - OOAD
19
Binary Associations
• Class C knows about Class D
• Class D knows about Class C
• No arrow
IT1206 - Institute of Technology, University of Moratuwa
Sameera Gunathilaka - OOAD
20
IT1206 - Institute of Technology, University of Moratuwa
Sameera Gunathilaka - OOAD
21
Multiplicity
IT1206 - Institute of Technology, University of Moratuwa
Sameera Gunathilaka - OOAD
22
IT1206 - Institute of Technology, University of Moratuwa
Sameera Gunathilaka - OOAD
23
Reflective Association
• Objects in the same class can be associated
IT1206 - Institute of Technology, University of Moratuwa
Sameera Gunathilaka - OOAD
24
Association Class
This places the responsibility for maintaining information pertaining to
the association with the Ownership class.
IT1206 - Institute of Technology, University of Moratuwa
Sameera Gunathilaka - OOAD
25
Association Class -Example
IT1206 - Institute of Technology, University of Moratuwa
Sameera Gunathilaka - OOAD
26
Association Class -Example
IT1206 - Institute of Technology, University of Moratuwa
Sameera Gunathilaka - OOAD
27
Association Class -Activity
• Each Student can take multiple units
• A unit can be taken by many students
• Students who follow units can take exam multiple times if they fail
We need to manage their marks for each attempt in the system
IT1206 - Institute of Technology, University of Moratuwa
Sameera Gunathilaka - OOAD
28
Association Class -Activity
IT1206 - Institute of Technology, University of Moratuwa
Sameera Gunathilaka - OOAD
29
Aggregation - Association
• Whole-part relationship( “Part of” Relationship)
• Removing Class B will not affect to the Class A
IT1206 - Institute of Technology, University of Moratuwa
Sameera Gunathilaka - OOAD
30
IT1206 - Institute of Technology, University of Moratuwa
Sameera Gunathilaka - OOAD
31
IT1206 - Institute of Technology, University of Moratuwa
Sameera Gunathilaka - OOAD
32
Composition - Association
• ‘part’ depends on the ‘whole’
• Parts are destroyed when the whole is destroyed
IT1206 - Institute of Technology, University of Moratuwa
Sameera Gunathilaka - OOAD
33
IT1206 - Institute of Technology, University of Moratuwa
Sameera Gunathilaka - OOAD
34
IT1206 - Institute of Technology, University of Moratuwa
Sameera Gunathilaka - OOAD
35
Inheritance (or
Generalization)
• Represents an "is-a"
relationship.
• An abstract class name is
shown in italics.
• SubClass1 and SubClass2
are specializations of
SuperClass.
IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka -
OOAD 36
Realization
• Source class support all the
operations of the target
element
• Relationship between the
interface and the
implementing class
• Realization is a relationship
between the blueprint class
and the object containing its
respective implementation
level details.
IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka -
OOAD 37
IT1206 - Institute of Technology, University of Moratuwa
Sameera Gunathilaka - OOAD
38
Thank you
IT1206 - Institute of Technology, University of Moratuwa
Sameera Gunathilaka - OOAD
39

More Related Content

Similar to IT1206- Object Oriented Analysis and Design- L10

U multirank pptx ankara11 14
U multirank pptx ankara11 14U multirank pptx ankara11 14
U multirank pptx ankara11 14Murat KOÇAK
 
Build a Career in Engineering and Technology 19.08.20
Build a Career in Engineering and Technology    19.08.20Build a Career in Engineering and Technology    19.08.20
Build a Career in Engineering and Technology 19.08.20Sanjay Goel
 
Engineering pedagogy and faculty leadership
Engineering pedagogy and faculty leadershipEngineering pedagogy and faculty leadership
Engineering pedagogy and faculty leadershipRAVI ROSHAN
 
InTRO Interim Report (March 2015)
InTRO Interim Report (March 2015)InTRO Interim Report (March 2015)
InTRO Interim Report (March 2015)UOInTRO
 
Counselling to IIT / NIT Aspirants on 'Why you should Choose Computer Science'
Counselling to IIT / NIT Aspirants on 'Why you should Choose Computer Science'Counselling to IIT / NIT Aspirants on 'Why you should Choose Computer Science'
Counselling to IIT / NIT Aspirants on 'Why you should Choose Computer Science'Nalini Marthi
 
UAEQ final project presentation
UAEQ final project presentationUAEQ final project presentation
UAEQ final project presentationAlyaziaKetbi1
 
PLU: OTEN 2013 - Student Preferences & Expectations for Technology in the Cla...
PLU: OTEN 2013 - Student Preferences & Expectations for Technology in the Cla...PLU: OTEN 2013 - Student Preferences & Expectations for Technology in the Cla...
PLU: OTEN 2013 - Student Preferences & Expectations for Technology in the Cla...Esteban (Steve) Sosa
 
Increase Departmental and University Community with an Asynchronous Online Or...
Increase Departmental and University Community with an Asynchronous Online Or...Increase Departmental and University Community with an Asynchronous Online Or...
Increase Departmental and University Community with an Asynchronous Online Or...Jozenia (Zeni) Colorado
 
Excellence in engineering education in india part 3
Excellence in engineering education in india part 3Excellence in engineering education in india part 3
Excellence in engineering education in india part 3Col Mukteshwar Prasad
 
Mahara and Moodle Sitting in a Tree
Mahara and Moodle Sitting in a TreeMahara and Moodle Sitting in a Tree
Mahara and Moodle Sitting in a TreeSam Taylor
 
Best mechanical engineering colleges in india
Best mechanical engineering colleges in indiaBest mechanical engineering colleges in india
Best mechanical engineering colleges in indiaArikJonson1
 
Top Private Universities in India for Engineering.pptx
Top Private Universities in India for Engineering.pptxTop Private Universities in India for Engineering.pptx
Top Private Universities in India for Engineering.pptxUnited University
 
Australian Academic Leadership Survey &;Interviews – An interim report - Alla...
Australian Academic Leadership Survey &;Interviews – An interim report - Alla...Australian Academic Leadership Survey &;Interviews – An interim report - Alla...
Australian Academic Leadership Survey &;Interviews – An interim report - Alla...Blackboard APAC
 
ASAC Presentation for 2015 WSHETC (Final)
ASAC Presentation for 2015 WSHETC (Final)ASAC Presentation for 2015 WSHETC (Final)
ASAC Presentation for 2015 WSHETC (Final)Dave Dean
 
University-Industry Collaboration by M Iftikhar Anjum
University-Industry Collaboration by M Iftikhar AnjumUniversity-Industry Collaboration by M Iftikhar Anjum
University-Industry Collaboration by M Iftikhar AnjumIftikhar Anjum
 
BMSCE IEEE Orientation 2017
BMSCE IEEE Orientation 2017BMSCE IEEE Orientation 2017
BMSCE IEEE Orientation 2017Prashant Agarwal
 

Similar to IT1206- Object Oriented Analysis and Design- L10 (20)

All in 1
All in 1All in 1
All in 1
 
U multirank pptx ankara11 14
U multirank pptx ankara11 14U multirank pptx ankara11 14
U multirank pptx ankara11 14
 
Build a Career in Engineering and Technology 19.08.20
Build a Career in Engineering and Technology    19.08.20Build a Career in Engineering and Technology    19.08.20
Build a Career in Engineering and Technology 19.08.20
 
Engineering pedagogy and faculty leadership
Engineering pedagogy and faculty leadershipEngineering pedagogy and faculty leadership
Engineering pedagogy and faculty leadership
 
InTRO Interim Report (March 2015)
InTRO Interim Report (March 2015)InTRO Interim Report (March 2015)
InTRO Interim Report (March 2015)
 
Counselling to IIT / NIT Aspirants on 'Why you should Choose Computer Science'
Counselling to IIT / NIT Aspirants on 'Why you should Choose Computer Science'Counselling to IIT / NIT Aspirants on 'Why you should Choose Computer Science'
Counselling to IIT / NIT Aspirants on 'Why you should Choose Computer Science'
 
UAEQ final project presentation
UAEQ final project presentationUAEQ final project presentation
UAEQ final project presentation
 
PLU: OTEN 2013 - Student Preferences & Expectations for Technology in the Cla...
PLU: OTEN 2013 - Student Preferences & Expectations for Technology in the Cla...PLU: OTEN 2013 - Student Preferences & Expectations for Technology in the Cla...
PLU: OTEN 2013 - Student Preferences & Expectations for Technology in the Cla...
 
Increase Departmental and University Community with an Asynchronous Online Or...
Increase Departmental and University Community with an Asynchronous Online Or...Increase Departmental and University Community with an Asynchronous Online Or...
Increase Departmental and University Community with an Asynchronous Online Or...
 
E-commerce: Slides template
E-commerce: Slides templateE-commerce: Slides template
E-commerce: Slides template
 
Chapter2 bag1
Chapter2 bag1Chapter2 bag1
Chapter2 bag1
 
Excellence in engineering education in india part 3
Excellence in engineering education in india part 3Excellence in engineering education in india part 3
Excellence in engineering education in india part 3
 
Mahara and Moodle Sitting in a Tree
Mahara and Moodle Sitting in a TreeMahara and Moodle Sitting in a Tree
Mahara and Moodle Sitting in a Tree
 
Best mechanical engineering colleges in india
Best mechanical engineering colleges in indiaBest mechanical engineering colleges in india
Best mechanical engineering colleges in india
 
Top Private Universities in India for Engineering.pptx
Top Private Universities in India for Engineering.pptxTop Private Universities in India for Engineering.pptx
Top Private Universities in India for Engineering.pptx
 
Australian Academic Leadership Survey &;Interviews – An interim report - Alla...
Australian Academic Leadership Survey &;Interviews – An interim report - Alla...Australian Academic Leadership Survey &;Interviews – An interim report - Alla...
Australian Academic Leadership Survey &;Interviews – An interim report - Alla...
 
ASAC Presentation for 2015 WSHETC (Final)
ASAC Presentation for 2015 WSHETC (Final)ASAC Presentation for 2015 WSHETC (Final)
ASAC Presentation for 2015 WSHETC (Final)
 
WP2 - OPEN INNOVATION PROCESS MODEL
WP2 - OPEN INNOVATION PROCESS MODELWP2 - OPEN INNOVATION PROCESS MODEL
WP2 - OPEN INNOVATION PROCESS MODEL
 
University-Industry Collaboration by M Iftikhar Anjum
University-Industry Collaboration by M Iftikhar AnjumUniversity-Industry Collaboration by M Iftikhar Anjum
University-Industry Collaboration by M Iftikhar Anjum
 
BMSCE IEEE Orientation 2017
BMSCE IEEE Orientation 2017BMSCE IEEE Orientation 2017
BMSCE IEEE Orientation 2017
 

More from BakerTilly US

IT1204 - Software Engineering - L12
IT1204 - Software Engineering - L12IT1204 - Software Engineering - L12
IT1204 - Software Engineering - L12BakerTilly US
 
IT1204 - Software Engineering - L11
IT1204 - Software Engineering - L11IT1204 - Software Engineering - L11
IT1204 - Software Engineering - L11BakerTilly US
 
IT1204 - Software Engineering - L10
IT1204 - Software Engineering - L10IT1204 - Software Engineering - L10
IT1204 - Software Engineering - L10BakerTilly US
 
IT1204 - Software Engineering - L9
IT1204 - Software Engineering - L9IT1204 - Software Engineering - L9
IT1204 - Software Engineering - L9BakerTilly US
 
IT1204 - Software engineering - L5
IT1204 - Software engineering - L5IT1204 - Software engineering - L5
IT1204 - Software engineering - L5BakerTilly US
 
IT1204 - Software Engineering -L8
IT1204 - Software Engineering -L8IT1204 - Software Engineering -L8
IT1204 - Software Engineering -L8BakerTilly US
 
IT1204 - Software Engineering - L7
IT1204 - Software Engineering - L7IT1204 - Software Engineering - L7
IT1204 - Software Engineering - L7BakerTilly US
 
IT1204 – Software Engineering L6
IT1204 – Software Engineering L6                                           IT1204 – Software Engineering L6
IT1204 – Software Engineering L6 BakerTilly US
 
IT1204 - Software Engineering - L4
IT1204 - Software Engineering - L4IT1204 - Software Engineering - L4
IT1204 - Software Engineering - L4BakerTilly US
 
IT1204 - Software Engineering L3- Extended
IT1204 - Software Engineering   L3- ExtendedIT1204 - Software Engineering   L3- Extended
IT1204 - Software Engineering L3- ExtendedBakerTilly US
 
IT1204- Software Engineering - L3
IT1204- Software Engineering - L3IT1204- Software Engineering - L3
IT1204- Software Engineering - L3BakerTilly US
 
IT1204- Software Engineering - L2
IT1204- Software Engineering - L2IT1204- Software Engineering - L2
IT1204- Software Engineering - L2BakerTilly US
 
IT1204- Introduction to software engineering - L1
IT1204- Introduction to software engineering - L1IT1204- Introduction to software engineering - L1
IT1204- Introduction to software engineering - L1BakerTilly US
 
Analysis of Service Gaps - Customer service management
Analysis of Service Gaps - Customer service management Analysis of Service Gaps - Customer service management
Analysis of Service Gaps - Customer service management BakerTilly US
 

More from BakerTilly US (14)

IT1204 - Software Engineering - L12
IT1204 - Software Engineering - L12IT1204 - Software Engineering - L12
IT1204 - Software Engineering - L12
 
IT1204 - Software Engineering - L11
IT1204 - Software Engineering - L11IT1204 - Software Engineering - L11
IT1204 - Software Engineering - L11
 
IT1204 - Software Engineering - L10
IT1204 - Software Engineering - L10IT1204 - Software Engineering - L10
IT1204 - Software Engineering - L10
 
IT1204 - Software Engineering - L9
IT1204 - Software Engineering - L9IT1204 - Software Engineering - L9
IT1204 - Software Engineering - L9
 
IT1204 - Software engineering - L5
IT1204 - Software engineering - L5IT1204 - Software engineering - L5
IT1204 - Software engineering - L5
 
IT1204 - Software Engineering -L8
IT1204 - Software Engineering -L8IT1204 - Software Engineering -L8
IT1204 - Software Engineering -L8
 
IT1204 - Software Engineering - L7
IT1204 - Software Engineering - L7IT1204 - Software Engineering - L7
IT1204 - Software Engineering - L7
 
IT1204 – Software Engineering L6
IT1204 – Software Engineering L6                                           IT1204 – Software Engineering L6
IT1204 – Software Engineering L6
 
IT1204 - Software Engineering - L4
IT1204 - Software Engineering - L4IT1204 - Software Engineering - L4
IT1204 - Software Engineering - L4
 
IT1204 - Software Engineering L3- Extended
IT1204 - Software Engineering   L3- ExtendedIT1204 - Software Engineering   L3- Extended
IT1204 - Software Engineering L3- Extended
 
IT1204- Software Engineering - L3
IT1204- Software Engineering - L3IT1204- Software Engineering - L3
IT1204- Software Engineering - L3
 
IT1204- Software Engineering - L2
IT1204- Software Engineering - L2IT1204- Software Engineering - L2
IT1204- Software Engineering - L2
 
IT1204- Introduction to software engineering - L1
IT1204- Introduction to software engineering - L1IT1204- Introduction to software engineering - L1
IT1204- Introduction to software engineering - L1
 
Analysis of Service Gaps - Customer service management
Analysis of Service Gaps - Customer service management Analysis of Service Gaps - Customer service management
Analysis of Service Gaps - Customer service management
 

Recently uploaded

Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about usDynamic Netsoft
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationkaushalgiri8080
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfkalichargn70th171
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfCionsystems
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendTest Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendArshad QA
 

Recently uploaded (20)

Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about us
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanation
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdf
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendTest Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and Backend
 

IT1206- Object Oriented Analysis and Design- L10

  • 1. Object Oriented Analysis and Design L10 IT1206 IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 1 Sameera Gunathilaka Lead Software Engineer ERP Technical Consultant
  • 2. Types of UML Diagrams (Modelling Types) Structural UML diagrams Package diagram Object diagram Component diagram Composite structure diagram Deployment diagram Behavioural UML diagrams Activity diagram Sequence diagram Use case diagram State diagram Communication diagram Interaction overview diagram Timing diagram
  • 3. Recap: What is a Class? • A Class is a blueprint(template) for an object • We use classes to create objects • Classes describe the type of objects, while objects are usable instances of classes • Objects have states and behaviours IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 3
  • 4. Example A dog has - color, name, breed as well as behaviors - wagging, barking, eating. An object is an instance of a class. IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 4
  • 5. UML Class Notation • Class encapsulates: attributes (state) and operations (behaviour) • attribute has a type • operation has a signature IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 5
  • 6. Example IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 6
  • 7. Class Visibility • + denotes public attributes or operations • - denotes private attributes or operations • # denotes protected attributes or operations IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 7
  • 8. Parameter Directionality • Direction: OUT or INOUT or IN • It specifies its direction with respect to the caller IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 8
  • 9. Perspectives of Class Diagram IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 9
  • 10. Focus of this course: Conceptual
  • 11. Relationships between classes IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 11
  • 12. Strength of Relationships • Most weakest relationship: Dependency • Most Strongest relationship: Inheritance 12 IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD
  • 13. Dependency 13 •A uses B •Changing B will affect the A IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD
  • 14. Dependency example • Cart class depend on the Product class • Cart uses Products • Changing the Product will affect the Cart • Cart class depends on the Product class IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 14
  • 15. Associations 15 • Connects one instance of a class with an instance of another class • Stronger relationship than Dependency • An Employee works for a Company
  • 16. Direction of Association Unary Association vs Binary Association IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 16
  • 17. Unary Associations • Class A knows Class B • Class B knows nothing about Class A IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 17
  • 18. Unary Association IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 18
  • 19. IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 19
  • 20. Binary Associations • Class C knows about Class D • Class D knows about Class C • No arrow IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 20
  • 21. IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 21
  • 22. Multiplicity IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 22
  • 23. IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 23
  • 24. Reflective Association • Objects in the same class can be associated IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 24
  • 25. Association Class This places the responsibility for maintaining information pertaining to the association with the Ownership class. IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 25
  • 26. Association Class -Example IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 26
  • 27. Association Class -Example IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 27
  • 28. Association Class -Activity • Each Student can take multiple units • A unit can be taken by many students • Students who follow units can take exam multiple times if they fail We need to manage their marks for each attempt in the system IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 28
  • 29. Association Class -Activity IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 29
  • 30. Aggregation - Association • Whole-part relationship( “Part of” Relationship) • Removing Class B will not affect to the Class A IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 30
  • 31. IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 31
  • 32. IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 32
  • 33. Composition - Association • ‘part’ depends on the ‘whole’ • Parts are destroyed when the whole is destroyed IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 33
  • 34. IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 34
  • 35. IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 35
  • 36. Inheritance (or Generalization) • Represents an "is-a" relationship. • An abstract class name is shown in italics. • SubClass1 and SubClass2 are specializations of SuperClass. IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 36
  • 37. Realization • Source class support all the operations of the target element • Relationship between the interface and the implementing class • Realization is a relationship between the blueprint class and the object containing its respective implementation level details. IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 37
  • 38. IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 38
  • 39. Thank you IT1206 - Institute of Technology, University of Moratuwa Sameera Gunathilaka - OOAD 39

Editor's Notes

  1. We are learning mainly those highlighted diagrams
  2. Visibility of Operations and attributes
  3. Conceptual: represents the concepts in the domain Specification: focus is on the interfaces of Abstract Data Type (ADTs) in the software Implementation: describes how classes will implement their interfaces
  4. Cart class depends on the Product class – correct Product class has a dependency on Cart - wrong
  5. One way or two way One directional vs Bi-directional
  6. Person Has an Address
  7. Customer can own accounts Account is belonged to a Customer
  8. Hose has one Kitchen, one or many bathroom, one or many bedrooms Kitechn, Bath,Bed rooms are rooms House has a one mail box House can have a mortgage one time or not
  9. Company has Employees A single manager responsible for up to 10 workers
  10. Belt is a part of me now, but belt can exist without me Watch is a part of me, but it exists without me
  11. Removing the Slide will not affect to the Lake
  12. Hose has one Kitchen, one or many bathroom, one or many bedrooms Kitechn, Bath,Bed rooms are rooms House has a one mail box House can have a mortgage one time or not
  13. Class B live or die with Class B Hand is a part of me, but hand cannot exist without me. But I can exist without hand
  14. Department is a part of Company. Department cannot exist without Company. But Company can exist without department.
  15. Hose has one Kitchen, one or many bathroom, one or many bedrooms Kitechn, Bath,Bed rooms are rooms House has a one mail box House can have a mortgage one time or not
  16. Most strongest relationship