Object composition
From Wiki @ Karl Jones dot com
In computer science, object composition (not to be confused with function composition) is a way to combine simple objects or data types into more complex ones.
Description
Compositions are a critical building block of many basic data structures, including the tagged union, the linked list, and the binary tree, as well as the [Object (computer science)|object]] used in object-oriented programming.
See also
- Association (object-oriented programming)
- C++ structure
- Composite type
- Composition over inheritance
- Delegation (programming)
- Function composition (computer science)
- Has-a
- Implementation inheritance
- Inheritance semantics
- Law of Demeter
- Object (computer science)
- Virtual inheritance
External links
- Object composition @ Wikipedia