Class implementing an interface cannot narrow access modifier, so method a() has to be public.
Number of parameters cannot change with overriding, a(A a, B b) is a different method. But method a() has to be implemented for correct interface implementation.
Method a() is not static and you need an instance of an object to call it, so A.a() will not compile.
Войдите чтобы поставить Нравится
Войдите чтобы прокомментировать