brainfck.org
Topics Books Journal Tags Search

OOP/Composition

  • An alternative to OOP/Inheritance is to delegate behavior, also called composition. Instead of an is a, this is a has a relationship. It refers to combining simple types to make more complex ones.

Links to this note

  • OOP
  • -   Why you should use [OOP/Composition](/t/oop/composition/) instead of inheritance
    

prev post next post



Powered by Hugo, based on the Er theme.