Public interface A{ public Iterable a();}Public interface B extends A{ public Collection a();}Public interface C extends A{ public Path a();}Public interface D extendsB,C{}Why does D cause a compilation error?
选项:
A:D does not define any method?
B:D inherits a() only from c
C:D extends more than one interface
D:D inherits a() from B and C but the return types are incompatible
发布时间:2024-03-31 20:16:08