6 kyu
GrandChild get the habit from Uncle
Loading description...
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Approved!
thanks
The Kata description is far more complex than the problem at hand. I nearly skipped the Kata it sounded so confusing. In the end it is a simple problem, broadly summed up by the last paragraph. The Kata would benefit from using the virtual keyword on the underlying TakeTheGarbageOut method. Also perhaps it would be simpler to have the son take out the garbage differently than the rest of his family - it is problematic to model the problem of the son taking out garbage like his uncle, whilst adhering to good practice, given the contraints of the kata.
The main point of this kata is finding a solution for diamond problem and implement multi-inheritance using interfaces. So, the son should inherit from the uncle to simulate diamond problem.
You cannot "inherit" an interface; you can only "implement" it! :)
This comment has been hidden.
multi-inheritance works in interface level for c#. I think it is the same for Java. No idea about other languages.
This comment has been hidden.
This comment has been hidden.
Nice kata.
First I was confused, but then ("First think, then act!") it was easy and good! ;-)
Long time ago, I guess the description is not perfect. I never came back to modify it. maybe I can take a look now. Thanks for feedback.
I'd say that this Kata could probably need some more tests. Maybe you could test that the Uncle Method is used and not just the same string returned.
How could I test if Uncle Method is actually used withoud comparing the returned string?
I authored this Kata several months ago, today I notice it has a major issue and there is not comment.
It seems a bit weird to me. does anyone know why it happens.
It's probably because someone marked it with "Major Issues" without adding a comment. Which leads to this behaviour.