What is a common name for inheritance, compilation, aggregation, delegation?

After the program is divided into a small object, these objects must be connected to each other. Where are the different types of connections. Inheritance, composition, aggregation, delegation. These types have many types and models, such as communication loosening, tight communication, control inversion, delegation via interfaces, etc. What is the correct common name for the mentioned types of compounds? I can assume that they are all called “links,” but I can't find a good classification in google, so maybe I'm trying to use the wrong term? Maybe someone knows a solid, trusted classification that I can use for terminology?

+5
source share
6 answers

They are usually called "relationships."

Java Glossary and related terms

Adapted from Object Oriented Programming with Java: Introduction by David J. Barnes :

has a relationship

See aggregation.

is-a relationship

See inheritance.

class inheritance

When a superclass is extended by a subclass, there is a class inheritance relationship between them.

aggregation

A relationship in which an object contains one or more other subordinate objects as part of its state.

delegation

The process by which an object passes a received message to a suborder. If inheritance is not available in a programming language, delegation is the most viable alternative to avoid code duplication and facilitate code reuse.

+15

, : , "". Relationships , , , "" - .

+10

- ,

- , /

- , /

- , .

?

, . - , . , .

, ""

( UML) "" , , , . (, , ); , , , .

+5

- .

+2

" " .

+1

UML - , , , , .

UML v2.3 (http://www.omg.org/spec/UML/2.3/Infrastructure/PDF/):

, . .

, , . - . UML () .

, UML . , :

- , - .

, , .

, UML . UML OO, "" "" . , , , .

+1

All Articles