Why should we use an interface, since we have to define the function in each class derived from the interface?

后端 未结 0 595
旧时难觅i
旧时难觅i 2020-12-29 22:26

It is clear that interfaces are required to use the concept of multiple inheritance in java. But the question here is since we are only declaring the method inside an interf

相关标签:
回答
  • 消灭零回复
提交回复
热议问题