title: What is the difference between subtyping and inheritance in OO programming?
body: <p>I could not find the main difference. And I am very confused when we could use inheritance and when we can use subtyping. I found some definitions but they are not very clear.</p>
  
  <p>What is the difference between subtyping and inheritance in object-oriented programming?</p>