Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 392 Bytes

subtyping.md

File metadata and controls

5 lines (3 loc) · 392 Bytes

Subtyping - Interface Inheritance

Class inheritance defines an object's implementation in terms of another object's implementation, working as a mechanism for code and representation sharing.

Interface inheritance or Subtyping describes when an object can be used in place of another, working as a mechanism for interface sharing without restricting to a particular implementation.