Java: extending a class and implementing an interface that have the same method

前端 未结 4 1210
小蘑菇
小蘑菇 2021-02-05 04:39

Probably the following cannot be done (I am getting a compilation error: \"The inherited method A.doSomthing(int) cannot hide the public abstract method in B\"):



        
4条回答
提交回复
热议问题