Class inheritance software design question

This is pretty good explanation of the Composition and Inheritance difference in Unreal.
The first part regarding Unity can be skipped.