Way to specify multiple interfaces in Java

后端 未结 6 821
清酒与你
清酒与你 2020-12-29 10:04

I have two interfaces, HasClickHandlers and DoesFancyFeedback. Then I have some UI objects that implement both interfaces - for example, a B

6条回答
  •  感动是毒
    2020-12-29 10:17

    Although that would be ugly, you could propably make it an Object and cast it. For the calling method, it would be the easiest way.

提交回复
热议问题