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.
This comment is hidden because it contains spoiler information about the solution
Fast and clean way. Avoids looping and unnecessary indentation for iterating. Congrats!
whoops
sometimes I am so stupid it is astounding. I make things so much harder than it needs to be
Oh, I see. Thank you for your answers!
Of course you still need to do that normally, but in this kata the author has already defined the init() method in the Animal class in the preloaded section. So the cat class also has that method.
And I don't need to manually write down what Animal class should do? Neat.
Thsnk you for your explanation!
The cat class is extended from the parent class 'Animal'. This means that when you create a new cat, it will also have the attributes defined in the animal class - in this case, its name.
Can anyone explain to me how it happens that self.name stores a value?