Consider this class hierarchy:
- `Book extends Goods`
- `Book implements Taxable`
As we know, there is a relationship between a subclass and its superclass (is-a).
Q: Is there any relationship like "is-a" between `Book` and `Taxable`?
GOOD Answers, but you said that "is-a" is also a relationship between `Book` and `Taxable`, **but** "is-a" is a relation between *classes*, and an interface is not a class!
A dupe of sorts: stackoverflow.com/questions/766106/â€¦
以上就是Is there any relation between the class that implements interface and that interface???的详细内容，更多请关注web前端其它相关文章！