Closed mrizwansarwar closed 7 years ago
Fixed, the implementation must return int
instead of void
.
Thanks again!
The above problem is repeated in the code snippet the appears after this one. I am assuming that the typo that is intended is the difference in method name only but again the return types are different.
Yes, I didn't see it.
It's fixed now, thanks.
The following code does not compile due to return type mismatch
interface CompactCar { int accelerate(); } class Car implements CompactCar { @Override public void accelerate() { // implementation } }