Composition (computer science)
|
In computer science, composition is an act or result of combining simple objects, types (a composite type is commonly known as structure or record.) and subroutines into more complex ones. The term composition is used in two different realms, namely
- Object composition - combining several objects into one object.
- Function composition originating from mathematics.
The two concepts have little in common.