0
Java Interfaces Code coach problem
I am confused how to solve this problem. Any tips? https://code.sololearn.com/cZ5RgbhtJWhk/?ref=app
2 Réponses
+ 1
To resolve the error, line 24 and 25 should be modified and made abstract.
public abstract void swim();
public abstract void play();
If this doesn't solve the problem then make sure to share the problem statement with the code so that the community could help, as many of them are not pro users.
0
I subscribed the pro version to see these problems, then I realized that some pre-written statements seem to be swapped. Then regarding this problem, the original code should contain:
dog.swim();
dog.play();
cat.swim();
cat.play();
But items were swapped, being
dog.swim();
cat.swim();
dog.play();
cat.play();
Does it proceed guys?
Furthermore, there was a curly ending bracket left for the Dog class and one for the Cat Class.