SlideShare a Scribd company logo
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

Java interfaces
Java interfacesJava interfaces
Java interfaces
Raja Sekhar
 
Component and Deployment Diagram - Brief Overview
Component and Deployment Diagram - Brief OverviewComponent and Deployment Diagram - Brief Overview
Component and Deployment Diagram - Brief Overview
Rajiv Kumar
 
Introduction to oops concepts
Introduction to oops conceptsIntroduction to oops concepts
Introduction to oops concepts
Nilesh Dalvi
 
Activity diagram
Activity diagramActivity diagram
Activity diagram
LOKENDRA PRAJAPATI
 
java interface and packages
java interface and packagesjava interface and packages
java interface and packages
VINOTH R
 
CS8592-OOAD Lecture Notes Unit-1
CS8592-OOAD Lecture Notes Unit-1CS8592-OOAD Lecture Notes Unit-1
CS8592-OOAD Lecture Notes Unit-1
Gobinath Subramaniam
 
UML Diagrams
UML DiagramsUML Diagrams
UML Diagrams
Kartik Raghuvanshi
 
Sql fundamentals
Sql fundamentalsSql fundamentals
Sql fundamentals
Ravinder Kamboj
 
OOP Introduction with java programming language
OOP Introduction with java programming languageOOP Introduction with java programming language
OOP Introduction with java programming language
Md.Al-imran Roton
 
Threads in JAVA
Threads in JAVAThreads in JAVA
Java rmi
Java rmiJava rmi
Java rmi
kamal kotecha
 
Grasp patterns and its types
Grasp patterns and its typesGrasp patterns and its types
Grasp patterns and its types
Syed Hassan Ali
 
Entity Relationship Diagrams
Entity Relationship DiagramsEntity Relationship Diagrams
Entity Relationship Diagrams
sadique_ghitm
 
Package Diagram
Package DiagramPackage Diagram
Advanced Structural Modeling
Advanced Structural ModelingAdvanced Structural Modeling
Advanced Structural Modeling
AMITJain879
 
Ooad
OoadOoad
Object diagram
Object diagramObject diagram
Object diagram
Preeti Mishra
 
Multi threading
Multi threadingMulti threading
Multi threading
gndu
 
Object Oriented Programming
Object Oriented ProgrammingObject Oriented Programming
Object Oriented Programming
Iqra khalil
 

What's hot (20)

Java interfaces
Java interfacesJava interfaces
Java interfaces
 
Component and Deployment Diagram - Brief Overview
Component and Deployment Diagram - Brief OverviewComponent and Deployment Diagram - Brief Overview
Component and Deployment Diagram - Brief Overview
 
Association agggregation and composition
Association agggregation and compositionAssociation agggregation and composition
Association agggregation and composition
 
Introduction to oops concepts
Introduction to oops conceptsIntroduction to oops concepts
Introduction to oops concepts
 
Activity diagram
Activity diagramActivity diagram
Activity diagram
 
java interface and packages
java interface and packagesjava interface and packages
java interface and packages
 
CS8592-OOAD Lecture Notes Unit-1
CS8592-OOAD Lecture Notes Unit-1CS8592-OOAD Lecture Notes Unit-1
CS8592-OOAD Lecture Notes Unit-1
 
UML Diagrams
UML DiagramsUML Diagrams
UML Diagrams
 
Sql fundamentals
Sql fundamentalsSql fundamentals
Sql fundamentals
 
OOP Introduction with java programming language
OOP Introduction with java programming languageOOP Introduction with java programming language
OOP Introduction with java programming language
 
Threads in JAVA
Threads in JAVAThreads in JAVA
Threads in JAVA
 
Java rmi
Java rmiJava rmi
Java rmi
 
Grasp patterns and its types
Grasp patterns and its typesGrasp patterns and its types
Grasp patterns and its types
 
Entity Relationship Diagrams
Entity Relationship DiagramsEntity Relationship Diagrams
Entity Relationship Diagrams
 
Package Diagram
Package DiagramPackage Diagram
Package Diagram
 
Advanced Structural Modeling
Advanced Structural ModelingAdvanced Structural Modeling
Advanced Structural Modeling
 
Ooad
OoadOoad
Ooad
 
Object diagram
Object diagramObject diagram
Object diagram
 
Multi threading
Multi threadingMulti threading
Multi threading
 
Object Oriented Programming
Object Oriented ProgrammingObject Oriented Programming
Object Oriented Programming
 

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
 
UNIT II DBMS.pptx
UNIT II DBMS.pptxUNIT II DBMS.pptx
UNIT II DBMS.pptx
NIVETHA37590
 
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
ijpla
 
CHAPTER 3 oop with programming java language
CHAPTER 3 oop with programming java languageCHAPTER 3 oop with programming java language
CHAPTER 3 oop with programming java language
TSha7
 
SE18_Lec 08_UML Class Diagram
SE18_Lec 08_UML Class DiagramSE18_Lec 08_UML Class Diagram
SE18_Lec 08_UML Class Diagram
Amr E. Mohamed
 
dbms mannual.pdf
dbms mannual.pdfdbms mannual.pdf
dbms mannual.pdf
DevidasBhere
 
Data Modeling Er
Data Modeling ErData Modeling Er
Data Modeling Er
1ajnabi4u
 
Lecture 12
Lecture 12Lecture 12
Lecture 12
A. S. M. Shafi
 
Object Oriented Relationships
Object Oriented RelationshipsObject Oriented Relationships
Object Oriented Relationships
Taher Barodawala
 
Understanding knowledge network, learning and connectivism
Understanding knowledge network, learning and connectivismUnderstanding knowledge network, learning and connectivism
Understanding knowledge network, learning and connectivism
Alaa 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).pdf
PeterTran514407
 
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 Orientation
Michael Heron
 
Er Modeling
Er ModelingEr Modeling
SE_Lec 07_UML CLASS DIAGRAM
SE_Lec 07_UML CLASS DIAGRAMSE_Lec 07_UML CLASS DIAGRAM
SE_Lec 07_UML CLASS DIAGRAM
Amr E. Mohamed
 

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
 
CHAPTER 3 oop with programming java language
CHAPTER 3 oop with programming java languageCHAPTER 3 oop with programming java language
CHAPTER 3 oop with programming java language
 
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
 

Recently uploaded

The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
PedroFerreira53928
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
Nguyen Thanh Tu Collection
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
EduSkills OECD
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
Celine George
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 

Recently uploaded (20)

The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 

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 *