Composition is basically has a relationship and deals with the object creation in different classes. It is different from Inheritance. Object composition is a way to combine simple objects into more complex ones. 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 used in object-oriented programming. Composited objects are often referred to as having a "has a" relationship.
Knowledge increases when shares to others.
Showing posts with label composition examples. Show all posts
Showing posts with label composition examples. Show all posts
Sunday, October 9
Composition Concept using C-sharp language source code
Composition is basically has a relationship and deals with the object creation in different classes. It is different from Inheritance. Object composition is a way to combine simple objects into more complex ones. 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 used in object-oriented programming. Composited objects are often referred to as having a "has a" relationship.
Subscribe to:
Posts (Atom)