Both are forms of object reuse
Both have weaknesses and strengths
Let's start with the parent class.
For example, here is a class diagram for the Dog class: