Java throwing error “ is not abstract and does not override abstract method in the

前端 未结 3 810
小鲜肉
小鲜肉 2020-12-12 03:10

I am unable to compile the below code written, Java always throws an error. Can you please help me out (P.S: I am new to Java, in a learning stage still). If anywhere, i hav

3条回答
  •  情深已故
    2020-12-12 03:19

    When you implement an interface you need to implement all the methods of that interface in the implementing class.

    In your example you should implement add(), sub(), mul() and div() in any class that implements the interface calci

提交回复
热议问题