encyclopegia.org

Association (object-oriented programming)

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 structural, because it specifies that objects of one kind are connected to objects of another and does not represent behaviour. In generic terms, the causation is usually called "sending a message", "invoking a method" or "calling a member function" to the controlled object. Concrete implementation usually requires the requesting object to invoke a method or member function using a reference or pointer to the memory location of the controlled object. The objects that are related via the association are considered to act in a role with respect to the association, if object's current state in the active situation allows the other associated objects to use the object in the manner specified by the role. A role can be used to distinguish two objects of the same class when describing its use in the context of the association. A role describes the public aspects of an object with respect to an association. The ends of the association can have all the characteristics of a property: * They can have a multiplicity, expressed by a lower and an upper limit in the form of "lowerLimit..upperLimit". * You can have a name. * You can declare a visibility.…

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 structural, because it specifies that objects of one kind are connected to objects of another and does not represent behaviour. In generic terms, the causation is usually called "sending a message", "invoking a method" or "calling a member function" to the controlled object. Concrete implementation usually requires the requesting object to invoke a method or member function using a reference or pointer to the memory location of the controlled object. The objects that are related via the association are considered to act in a role with respect to the association, if object's current state in the active situation allows the other associated objects to use the object in the manner specified by the role. A role can be used to distinguish two objects of the same class when describing its use in the context of the association. A role describes the public aspects of an object with respect to an association. The ends of the association can have all the characteristics of a property: They can have a multiplicity, expressed by a lower and an upper limit in the form of "lowerLimit..upperLimit". You can have a name. You can declare a visibility. You can specify whether the end of the association is ordered and / or unique. ==See also== Aggregation Object composition ==References==

References

No reference rows published for this article.

Cite this article

MLA

"Association (object-oriented programming)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/association-object-oriented-programming. Accessed 24 November 2026.

Chicago

"Association (object-oriented programming)." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/association-object-oriented-programming.

APA

encyclopegia.org. (2026). Association (object-oriented programming). Retrieved November 24, 2026, from https://encyclopegia.org/wiki/association-object-oriented-programming

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Arthur Nortje

enwiki · references available

Fulgence Charpentier

enwiki · references available

Democratic Farmers' Party of Germany

enwiki · references available

Nucleus (neuroanatomy)

enwiki · references available

Hacıosman, Manyas

enwiki · references available

SIGCOMM

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1357877114 · 0.5 · snapshot enwiki-001357877114

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.