What's the difference between
and
Enter two words to compare and contrast their definitions, origins, and synonyms to better understand how those words are related.

Encapsulation vs Inheritance - What's the difference?

encapsulation | inheritance |

As nouns the difference between encapsulation and inheritance

is that encapsulation is the act of enclosing in a capsule; the growth of a membrane around (any part) so as to enclose it in a capsule while inheritance is the passing of title to an estate upon death.

encapsulation

English

Noun

(wikipedia encapsulation) (en noun)
  • The act of enclosing in a capsule; the growth of a membrane around (any part) so as to enclose it in a capsule.
  • Grouping together an object’s ‘state’ (its data) and the operations that may alter or interrogate it (its methods).Huw Collingbourne, The Book of Ruby'', ''‘Encapsulation’ or ‘Information Hiding’? , page 140
  • (label) The process of arranging data into packets that can be transmitted using a given protocol.
  • References

    ----

    inheritance

    Alternative forms

    * enheritance (obsolete) * enheritaunce (obsolete) * inheritaunce (obsolete)

    Noun

  • The passing of title to an estate upon death.
  • (lb) That which a person is entitled to inherit, by law or testament.
  • (lb) The biological attributes passed hereditarily from ancestors to their offspring.
  • In object-oriented programming, the mechanism whereby parts of a superclass are available to instances of its subclass.
  • References

    * (EtymOnLine)