Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I understood that only Snoopy can bark, and Scoobydoo can't bark ?
So Snoopy.bark() returns "Woof"
But Scoobydoo.bark() should return #undefined ?
Here, both Snoopy and Scoobydoo can bark.
I probably have missed something ?
+1
Ruby 3.0 should be enabled.
Good introduction to methods in OOP for beginners :D
still an issue.
simple to
I've completed this kata, however I'm unable to view the solutions, says that I need to complete it first.
I took this kata as: You have an instance of a defined class. The instance has a method that its class doesn't and you want to teach that method to all other instances of that class. Defined the function in the class code shouldn't be a solution.
Description isn't multilanguage appropriate. Needs corrections (at least for python)
Why? As long as they can bark ..
No, it's not more concise, it's just as many lines of code. And it defines an extra function per instance instead of one per class.
Nice beginner level object-oriented kata!
Woof Woof
This comment is hidden because it contains spoiler information about the solution
You can obviously do this kata with a simple copy-paste. However, the intended solution (object methods) is definitely not for the 8 kyu level...
Loading more items...