
[英]Implementing interface member with arguments that are more derived than in those in the interface declaration?
有没有办法实现这一点,以便我可以使用具有更多派生 arguments 的重载方法? 重载的方法与接口中定义的签名不匹配,即使它们继承自Command class,但它们应该仍然可以互换,对吧? 我想这是不允许的,因为它会让你这样做,这是没有意义的: 但是有没有办法解决这个问题,比如实现一个默认方法 ...