In the article, there is no such phrase:
use inheritance when there is pure IS-A relationship between classes
Moreover, Google did not find it elsewhere except your post.
Instead, the article reads:
Make sure inheritance models the is-a relationship.
My main guiding philosophy is that inheritance should be used only when a subclass is-a superclass. In the example above, an Apple likely is-a Fruit, so I would be inclined to use inheritance.
This means, if there is IS_A relationship, try to use inheritance first, and not composition. And there is no preference of using composition over inheritance
- each is good for its own role.