Class implementing Interface with subtype arguments

前端 未结 0 1667
悲&欢浪女
悲&欢浪女 2021-01-07 13:24

Why I cannot do that? I get compilation error.

public interface A {

  void update(Object a);
}

public class B implements A{
     void update(Long a) {
              


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