📜  为什么我们可以实现多个接口 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:20.459000             🧑  作者: Mango

代码示例1
A class can implement any number of interfaces.
  In this case there is no ambiguity even
  though both the interfaces are having same method.
   Because methods in an interface are always
  abstract by default, which doesn’t let them
  give their implementation 
  in interface itself.