SlideShare a Scribd company logo
1 of 17
SARDAR PATEL COLLEGE OF
ENGINEERING , BAKROL-124
Applied Science & Humanities Department
Subject Name :: Object Oriented Programming
using JAVA (2150704)
Branch :: Information Technology
Guided By ::
Prof. Ronak Patel
Branch :: Information Technology
Semester :: 5th
No. NAME Enrollment No.
1 Parekh Bhargav G. 151240116023
2 Patel Kevin R. 151240116040
3 Patel Ronak A. 151240116049
TOPIC ::
LINK AND ASSOCIATION
LINK AND ASSOCIATION
links and association are the means for building
the relationship among the objects and classes.
 Links and association , both are quite same
feature but links establishing among the objects
(instance) and association establishing among
the class.
Finally link is related to objects whereas
association is related to classes
LINKS
In object modeling links provides a
relationship between the objects.
 These objects or instance may be same or
different in data structure and behavior.
Therefore a link is a physical or conceptual
connection between instance (or objects).
A link represents a connection through which
an object collaborates with other objects.
 Rumbaugh has defined it as “a physical or
conceptual connection between objects”.
 Through a link, one object may invoke the
methods or navigate through another object.
 A link depicts the relationship between two
or more objects.
For example:
Works for
(Link)
 Ram works for SPCE College. In this example
“works for” is the link between “Ram” and
“SPCE College”. Links are relationship among
the objects(instance).
Ram SPCE
TYPES OF LINKS:
1.One to one links
2.one to many and many to one links
3. Many to Many
ASSOCIATIONS
Association is a group of links having common
structure and common behavior. Association
depicts the relationship between objects of one or
more classes. A link can be defined as an
instance of an association.
Object modeling describes as a group of links
with common structure and common semantics.
All the links among the object are the forms of
association among the same classes.
The association is the relationship among classes.
1. Association
2. Association with inverse direction
3.Association between student and university
DEGREE OF ASSOCIATION
1. Unary association(degree of one)
2. Binary Association (degree of two)
3. Ternary Association (degree of three)
4. Quaternary Association (degree of four)
5. Higher order association (more than four)
1.Unary Association: the association can be defined
on a single class. This type of association called
unary (or singular) association.
2. Binary Association: The binary association
contain the degree of two classes. The association
uses two class.
3. Ternary Association: The association which
contain the degree of three classes is called ternary
association. The ternary Association is an atomic
unit and cannot be subdivided into binary
association without losing information.
4. Quaternary Association: The Quaternary
Association exists when there are four classes
associated.
5. Higher degree Association: The higher order
association are more complicated to draw ,
implement because when more than four class
need to be associated then it seems a hard task
CARDINALITY RATIOS OF ASSOCIATIONS
Cardinality of a binary association denotes
the number of instances participating in an
association. There are three types of
cardinality ratios, namely:
One–to–One : A single object of class A is
associated with a single object of class B.
One–to–Many : A single object of class A is
associated with many objects of class B.
Many–to–Many : An object of class A may
be associated with many objects of class B
and conversely an object of class B may be
associated with many objects of class A.
ASSOCIATIONS NOTATIONS
Exa ctly O ne
O ptional
O ne O r M ore
Zero Or More
*
0..1
1..*
0..*
M any
Directed Association
*
Link and association in Java

More Related Content

What's hot

Object and class relationships
Object and class relationshipsObject and class relationships
Object and class relationshipsPooja mittal
 
Classes and Objects
Classes and Objects  Classes and Objects
Classes and Objects yndaravind
 
Architectural modeling chapter 5 of omd
Architectural modeling chapter 5 of omdArchitectural modeling chapter 5 of omd
Architectural modeling chapter 5 of omdjayashri kolekar
 
Stock Maintenance System in ooad with uml
Stock Maintenance System in ooad with umlStock Maintenance System in ooad with uml
Stock Maintenance System in ooad with umlSIVAPOORNIMA
 
Data Designs (Software Engg.)
Data Designs (Software Engg.)Data Designs (Software Engg.)
Data Designs (Software Engg.)Arun Shukla
 
Jdbc architecture and driver types ppt
Jdbc architecture and driver types pptJdbc architecture and driver types ppt
Jdbc architecture and driver types pptkamal kotecha
 
Unt 3 attributes, methods, relationships-1
Unt 3 attributes, methods, relationships-1Unt 3 attributes, methods, relationships-1
Unt 3 attributes, methods, relationships-1gopal10scs185
 
CS6502 OOAD - Question Bank and Answer
CS6502 OOAD - Question Bank and AnswerCS6502 OOAD - Question Bank and Answer
CS6502 OOAD - Question Bank and AnswerGobinath Subramaniam
 
Enhanced Entity-Relationship (EER) Modeling
Enhanced Entity-Relationship (EER) ModelingEnhanced Entity-Relationship (EER) Modeling
Enhanced Entity-Relationship (EER) Modelingsontumax
 
Language and Processors for Requirements Specification
Language and Processors for Requirements SpecificationLanguage and Processors for Requirements Specification
Language and Processors for Requirements Specificationkirupasuchi1996
 
Slide 4 Interaction Diagram
Slide 4 Interaction DiagramSlide 4 Interaction Diagram
Slide 4 Interaction DiagramNiloy Rocker
 

What's hot (20)

Object and class relationships
Object and class relationshipsObject and class relationships
Object and class relationships
 
Classes and Objects
Classes and Objects  Classes and Objects
Classes and Objects
 
Architectural modeling chapter 5 of omd
Architectural modeling chapter 5 of omdArchitectural modeling chapter 5 of omd
Architectural modeling chapter 5 of omd
 
Behavioural modelling
Behavioural modellingBehavioural modelling
Behavioural modelling
 
Stock Maintenance System in ooad with uml
Stock Maintenance System in ooad with umlStock Maintenance System in ooad with uml
Stock Maintenance System in ooad with uml
 
State chart diagram
State chart diagramState chart diagram
State chart diagram
 
Object modeling
Object modelingObject modeling
Object modeling
 
Data Designs (Software Engg.)
Data Designs (Software Engg.)Data Designs (Software Engg.)
Data Designs (Software Engg.)
 
Unit 5
Unit 5Unit 5
Unit 5
 
Jdbc architecture and driver types ppt
Jdbc architecture and driver types pptJdbc architecture and driver types ppt
Jdbc architecture and driver types ppt
 
Unt 3 attributes, methods, relationships-1
Unt 3 attributes, methods, relationships-1Unt 3 attributes, methods, relationships-1
Unt 3 attributes, methods, relationships-1
 
Ooad
OoadOoad
Ooad
 
Remote backup system
Remote backup systemRemote backup system
Remote backup system
 
CS6502 OOAD - Question Bank and Answer
CS6502 OOAD - Question Bank and AnswerCS6502 OOAD - Question Bank and Answer
CS6502 OOAD - Question Bank and Answer
 
Enhanced Entity-Relationship (EER) Modeling
Enhanced Entity-Relationship (EER) ModelingEnhanced Entity-Relationship (EER) Modeling
Enhanced Entity-Relationship (EER) Modeling
 
Language and Processors for Requirements Specification
Language and Processors for Requirements SpecificationLanguage and Processors for Requirements Specification
Language and Processors for Requirements Specification
 
Gof design patterns
Gof design patternsGof design patterns
Gof design patterns
 
Slide 4 Interaction Diagram
Slide 4 Interaction DiagramSlide 4 Interaction Diagram
Slide 4 Interaction Diagram
 
CS8592-OOAD Lecture Notes Unit-3
CS8592-OOAD Lecture Notes Unit-3CS8592-OOAD Lecture Notes Unit-3
CS8592-OOAD Lecture Notes Unit-3
 
Reactive systems
Reactive systemsReactive systems
Reactive systems
 

Similar to Link and association in Java

Fundamentals of Database Management Systems 2nd Edition Gillenson Solutions M...
Fundamentals of Database Management Systems 2nd Edition Gillenson Solutions M...Fundamentals of Database Management Systems 2nd Edition Gillenson Solutions M...
Fundamentals of Database Management Systems 2nd Edition Gillenson Solutions M...gamuhuto
 
PROPERTIES OF RELATIONSHIPS AMONG OBJECTS IN OBJECT-ORIENTED SOFTWARE DESIGN
PROPERTIES OF RELATIONSHIPS AMONG OBJECTS IN OBJECT-ORIENTED SOFTWARE DESIGNPROPERTIES OF RELATIONSHIPS AMONG OBJECTS IN OBJECT-ORIENTED SOFTWARE DESIGN
PROPERTIES OF RELATIONSHIPS AMONG OBJECTS IN OBJECT-ORIENTED SOFTWARE DESIGNijpla
 
SE18_Lec 08_UML Class Diagram
SE18_Lec 08_UML Class DiagramSE18_Lec 08_UML Class Diagram
SE18_Lec 08_UML Class DiagramAmr E. Mohamed
 
Data Modeling Er
Data Modeling ErData Modeling Er
Data Modeling Er1ajnabi4u
 
Object Oriented Relationships
Object Oriented RelationshipsObject Oriented Relationships
Object Oriented RelationshipsTaher Barodawala
 
Understanding knowledge network, learning and connectivism
Understanding knowledge network, learning and connectivismUnderstanding knowledge network, learning and connectivism
Understanding knowledge network, learning and connectivismAlaa Al Dahdouh
 
Slide 5 Class Diagram
Slide 5 Class DiagramSlide 5 Class Diagram
Slide 5 Class DiagramNiloy Rocker
 
Session13-Class Diagram (1).pdf
Session13-Class Diagram (1).pdfSession13-Class Diagram (1).pdf
Session13-Class Diagram (1).pdfPeterTran514407
 
Microposts Ontology Construction Via Concept Extraction
Microposts Ontology Construction Via Concept Extraction  Microposts Ontology Construction Via Concept Extraction
Microposts Ontology Construction Via Concept Extraction dannyijwest
 
Lecture 13
Lecture 13Lecture 13
Lecture 13Rana Ali
 
Microposts Ontology Construction Via Concept Extraction
Microposts Ontology Construction Via Concept Extraction                Microposts Ontology Construction Via Concept Extraction
Microposts Ontology Construction Via Concept Extraction dannyijwest
 
SAD02 - Object Orientation
SAD02 - Object OrientationSAD02 - Object Orientation
SAD02 - Object OrientationMichael Heron
 
SE_Lec 07_UML CLASS DIAGRAM
SE_Lec 07_UML CLASS DIAGRAMSE_Lec 07_UML CLASS DIAGRAM
SE_Lec 07_UML CLASS DIAGRAMAmr E. Mohamed
 
5e7ry754.pptx
5e7ry754.pptx5e7ry754.pptx
5e7ry754.pptxqwert001
 

Similar to Link and association in Java (20)

Fundamentals of Database Management Systems 2nd Edition Gillenson Solutions M...
Fundamentals of Database Management Systems 2nd Edition Gillenson Solutions M...Fundamentals of Database Management Systems 2nd Edition Gillenson Solutions M...
Fundamentals of Database Management Systems 2nd Edition Gillenson Solutions M...
 
UNIT II DBMS.pptx
UNIT II DBMS.pptxUNIT II DBMS.pptx
UNIT II DBMS.pptx
 
PROPERTIES OF RELATIONSHIPS AMONG OBJECTS IN OBJECT-ORIENTED SOFTWARE DESIGN
PROPERTIES OF RELATIONSHIPS AMONG OBJECTS IN OBJECT-ORIENTED SOFTWARE DESIGNPROPERTIES OF RELATIONSHIPS AMONG OBJECTS IN OBJECT-ORIENTED SOFTWARE DESIGN
PROPERTIES OF RELATIONSHIPS AMONG OBJECTS IN OBJECT-ORIENTED SOFTWARE DESIGN
 
SE18_Lec 08_UML Class Diagram
SE18_Lec 08_UML Class DiagramSE18_Lec 08_UML Class Diagram
SE18_Lec 08_UML Class Diagram
 
dbms mannual.pdf
dbms mannual.pdfdbms mannual.pdf
dbms mannual.pdf
 
Data Modeling Er
Data Modeling ErData Modeling Er
Data Modeling Er
 
Lecture 12
Lecture 12Lecture 12
Lecture 12
 
Object Oriented Relationships
Object Oriented RelationshipsObject Oriented Relationships
Object Oriented Relationships
 
Chapter3
Chapter3Chapter3
Chapter3
 
Understanding knowledge network, learning and connectivism
Understanding knowledge network, learning and connectivismUnderstanding knowledge network, learning and connectivism
Understanding knowledge network, learning and connectivism
 
Slide 5 Class Diagram
Slide 5 Class DiagramSlide 5 Class Diagram
Slide 5 Class Diagram
 
Session13-Class Diagram (1).pdf
Session13-Class Diagram (1).pdfSession13-Class Diagram (1).pdf
Session13-Class Diagram (1).pdf
 
Microposts Ontology Construction Via Concept Extraction
Microposts Ontology Construction Via Concept Extraction  Microposts Ontology Construction Via Concept Extraction
Microposts Ontology Construction Via Concept Extraction
 
Lecture 13
Lecture 13Lecture 13
Lecture 13
 
Microposts Ontology Construction Via Concept Extraction
Microposts Ontology Construction Via Concept Extraction                Microposts Ontology Construction Via Concept Extraction
Microposts Ontology Construction Via Concept Extraction
 
SAD02 - Object Orientation
SAD02 - Object OrientationSAD02 - Object Orientation
SAD02 - Object Orientation
 
database
databasedatabase
database
 
Er Modeling
Er ModelingEr Modeling
Er Modeling
 
SE_Lec 07_UML CLASS DIAGRAM
SE_Lec 07_UML CLASS DIAGRAMSE_Lec 07_UML CLASS DIAGRAM
SE_Lec 07_UML CLASS DIAGRAM
 
5e7ry754.pptx
5e7ry754.pptx5e7ry754.pptx
5e7ry754.pptx
 

Recently uploaded

Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxneillewis46
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi RajagopalEADTU
 
The Liver & Gallbladder (Anatomy & Physiology).pptx
The Liver &  Gallbladder (Anatomy & Physiology).pptxThe Liver &  Gallbladder (Anatomy & Physiology).pptx
The Liver & Gallbladder (Anatomy & Physiology).pptxVishal Singh
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...Nguyen Thanh Tu Collection
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnershipsexpandedwebsite
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital ManagementMBA Assignment Experts
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesPooky Knightsmith
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17Celine George
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesAmanpreetKaur157993
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxCeline George
 
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhĐề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhleson0603
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismDabee Kamal
 
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxLimon Prince
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................MirzaAbrarBaig5
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17Celine George
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportDenish Jangid
 
Climbers and Creepers used in landscaping
Climbers and Creepers used in landscapingClimbers and Creepers used in landscaping
Climbers and Creepers used in landscapingDr. M. Kumaresan Hort.
 

Recently uploaded (20)

Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopal
 
The Liver & Gallbladder (Anatomy & Physiology).pptx
The Liver &  Gallbladder (Anatomy & Physiology).pptxThe Liver &  Gallbladder (Anatomy & Physiology).pptx
The Liver & Gallbladder (Anatomy & Physiology).pptx
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical Principles
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategies
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhĐề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
 
Climbers and Creepers used in landscaping
Climbers and Creepers used in landscapingClimbers and Creepers used in landscaping
Climbers and Creepers used in landscaping
 

Link and association in Java

  • 1. SARDAR PATEL COLLEGE OF ENGINEERING , BAKROL-124 Applied Science & Humanities Department Subject Name :: Object Oriented Programming using JAVA (2150704) Branch :: Information Technology Guided By :: Prof. Ronak Patel
  • 2. Branch :: Information Technology Semester :: 5th No. NAME Enrollment No. 1 Parekh Bhargav G. 151240116023 2 Patel Kevin R. 151240116040 3 Patel Ronak A. 151240116049
  • 3. TOPIC :: LINK AND ASSOCIATION
  • 4. LINK AND ASSOCIATION links and association are the means for building the relationship among the objects and classes.  Links and association , both are quite same feature but links establishing among the objects (instance) and association establishing among the class. Finally link is related to objects whereas association is related to classes
  • 5. LINKS In object modeling links provides a relationship between the objects.  These objects or instance may be same or different in data structure and behavior. Therefore a link is a physical or conceptual connection between instance (or objects).
  • 6. A link represents a connection through which an object collaborates with other objects.  Rumbaugh has defined it as “a physical or conceptual connection between objects”.  Through a link, one object may invoke the methods or navigate through another object.  A link depicts the relationship between two or more objects.
  • 7. For example: Works for (Link)  Ram works for SPCE College. In this example “works for” is the link between “Ram” and “SPCE College”. Links are relationship among the objects(instance). Ram SPCE
  • 8. TYPES OF LINKS: 1.One to one links 2.one to many and many to one links 3. Many to Many
  • 9. ASSOCIATIONS Association is a group of links having common structure and common behavior. Association depicts the relationship between objects of one or more classes. A link can be defined as an instance of an association. Object modeling describes as a group of links with common structure and common semantics.
  • 10. All the links among the object are the forms of association among the same classes. The association is the relationship among classes. 1. Association 2. Association with inverse direction 3.Association between student and university
  • 11. DEGREE OF ASSOCIATION 1. Unary association(degree of one) 2. Binary Association (degree of two) 3. Ternary Association (degree of three) 4. Quaternary Association (degree of four) 5. Higher order association (more than four)
  • 12. 1.Unary Association: the association can be defined on a single class. This type of association called unary (or singular) association. 2. Binary Association: The binary association contain the degree of two classes. The association uses two class. 3. Ternary Association: The association which contain the degree of three classes is called ternary association. The ternary Association is an atomic unit and cannot be subdivided into binary association without losing information.
  • 13. 4. Quaternary Association: The Quaternary Association exists when there are four classes associated. 5. Higher degree Association: The higher order association are more complicated to draw , implement because when more than four class need to be associated then it seems a hard task
  • 14. CARDINALITY RATIOS OF ASSOCIATIONS Cardinality of a binary association denotes the number of instances participating in an association. There are three types of cardinality ratios, namely: One–to–One : A single object of class A is associated with a single object of class B.
  • 15. One–to–Many : A single object of class A is associated with many objects of class B. Many–to–Many : An object of class A may be associated with many objects of class B and conversely an object of class B may be associated with many objects of class A.
  • 16. ASSOCIATIONS NOTATIONS Exa ctly O ne O ptional O ne O r M ore Zero Or More * 0..1 1..* 0..* M any Directed Association *