0
Solve this!
I'm trying to solve the Interfaces on playground. I tried out the following code but all test cases failed. https://code.sololearn.com/c5fG9yrReQVr/?ref=app
2 Réponses
+ 5
Your code is correct, but you should method call like this:-
dog.swim();
dog.play();
cat.swim();
cat.play();
Try this
+ 1
Thanks a lot. I've been wondering why the code didn't pass test. You saved me a lot of headaches mate