假设我有一个ArticleInterface和一个VoteableInterface。
在声明我ArticleInterface应该使用 扩展新接口时,VoteableInterface还是应该在 的具体实现中进行ArticleInterface?
选项1。
interface ArticleInterface extends VoteableInterface {}
选项 2。
interface ArticleInterface {}
class Article implements ArticleInterface, VoteableInterface {}
哪个更好,为什么?