Implements vs extends: When to use? What's the difference?

前端 未结 18 800
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-22 17:03

Please explain in an easy to understand language or a link to some article.

18条回答
  •  时光说笑
    2020-11-22 17:31

    As shown in the figure given below, a class extends another class, an interface extends another interface but a class implements an interface.

    For more details

提交回复
热议问题