Difference between revisions of "Association"

esse quam videri
Jump to: navigation, search
(Created page with " =Definition= =Relevance= =Explanation= =Resources= == See also == * Constant * Data Type * Identifier * Keyword ==Notes== ==External Links== Cat...")
 
(Explanation / What does this mean)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
  
 
=Definition=
 
=Definition=
 +
In object-oriented programming, it is the relationship between classes of objects. It allows one object instance to cause another to perform an action.  This is known as “sending a message” or “calling a method”
  
 
=Relevance=
 
=Relevance=
 +
In programming, there are different relationships that can be used between your objects. Association is known as a weak relationship because the objects don't necessarily have to depend on each other.
  
=Explanation=
+
=Explanation / What does this mean=
 +
Similar to the relationship between a Teacher and a student. A student can go to multiple teachers and a teacher can have multiple students. There is no "owner" in the relationship and both objects can live independently from each other.
  
 +
[[File:AssociationVisual.png|512px]] [[File:AssociationVisual2.jpg|512px]]
  
  
=Resources=
 
== See also ==
 
  
* [[Constant]]
 
* [[Data Type]]
 
* [[Identifier]]
 
* [[Keyword]]
 
  
==Notes==
 
 
 
==External Links==
 
  
  

Latest revision as of 14:28, 12 August 2019

Definition

In object-oriented programming, it is the relationship between classes of objects. It allows one object instance to cause another to perform an action. This is known as “sending a message” or “calling a method”

Relevance

In programming, there are different relationships that can be used between your objects. Association is known as a weak relationship because the objects don't necessarily have to depend on each other.

Explanation / What does this mean

Similar to the relationship between a Teacher and a student. A student can go to multiple teachers and a teacher can have multiple students. There is no "owner" in the relationship and both objects can live independently from each other.

AssociationVisual.png AssociationVisual2.jpg