Association (object-oriented programming): Difference between revisions

Content deleted Content added
m Undid revision 1007503745 by 2C0F:F8F0:AC54:0:FC09:6264:78EB:9F4D (talk)
tag as one source
 
Line 1:
{{one source |date=March 2024}}
In [[object-oriented programming]], '''association''' defines a relationship between classes of objects that allows one object instance to cause another to perform an action on its behalf. This relationship is [[Unified Modeling Language#Structure diagrams|structural]], because it specifies that objects of one kind are connected to objects of another and does not represent [[Unified Modeling Language#Behavior diagrams|behaviour]].
[[Image:Association.JPG|thumb|'''Top:''' A bidirectional association<br/>'''Middle:''' An association is bidirectional, although it may be limited to just one direction by adorning some end with an arrowhead pointing to the direction of traversal.<br/>'''Bottom:''' Association is prohibited]]
Line 20 ⟶ 21:
{{Reflist}}
 
<!--Categories-->
[[Category:Object-oriented programming]]