What is association? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is association?

25th Nov 2018, 9:24 AM
SACHIN PAGARE
SACHIN PAGARE - avatar
2 Answers
+ 4
Is this a "What is" bombardment?! 8D If you Google them you can easily find the answers! How to post a minimal, complete, and verifiable question in SL's term. " Here are some tips to make sure your question qualifies: - Post only programming-related QUESTIONS and ANSWERS; - SEARCH for similar QUESTIONS or ANSWERS before posting; - Include relevant TAGS; - Follow community RULES: https://www.sololearn.com/Content-Creation-Guidelines/ DO NOT - Post spam/advertisement; - Use inappropriate language. * Post general discussions and open-ended questions in your feed. ** In case of an assignment, providing a code snippet is mandatory."
25th Nov 2018, 10:11 AM
Babak
Babak - avatar
+ 1
Association is a relationship where all object have their own lifecycle and there is no owner. Let’s take an example of Teacher and Student. Multiple students can associate with a single teacher and a single student can associate with multiple teachers but there is no ownership between the objects and both have their own lifecycle. These relationship can be one to one, One to many, many to one and many to many.
29th Nov 2018, 3:52 PM
SACHIN PAGARE
SACHIN PAGARE - avatar