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

18th Mar 2023, 3:08 AM
Emmanuel Kiprop Kimutai
Emmanuel Kiprop Kimutai - avatar
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
18th Mar 2023, 5:53 AM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar
+ 1
Thanks a lot. I've been wondering why the code didn't pass test. You saved me a lot of headaches mate
18th Mar 2023, 5:07 PM
Emmanuel Kiprop Kimutai
Emmanuel Kiprop Kimutai - avatar