Two interfaces with same method signature implemented in Java class

后端 未结 7 1491
独厮守ぢ
独厮守ぢ 2020-12-05 08:12

I have two Java interfaces and one implementing class.

(I have used Eclipse to run the program directly, and I did not try to check any compiler warning et cetera by

7条回答
  •  一整个雨季
    2020-12-05 08:34

    The class implements both interfaces - so no issue. Of course, this sort of thing should be avoided in more complex scenarios where unintended behaviour might result.

提交回复
热议问题