6 kyu

GrandChild get the habit from Uncle

Description
Loading description...
Fundamentals
  • Please sign in or sign up to leave a comment.
  • jadjare Avatar

    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.

    • aryan-firouzian Avatar

      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.

    • dibley1973 Avatar

      You cannot "inherit" an interface; you can only "implement" it! :)

  • dibley1973 Avatar

    This comment has been hidden.

  • jadjare Avatar

    This comment has been hidden.

  • user5036852 Avatar

    Nice kata.

    First I was confused, but then ("First think, then act!") it was easy and good! ;-)

    • aryan-firouzian Avatar

      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.

  • Darnor Avatar

    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.

  • aryan-firouzian Avatar

    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.

    • Darnor Avatar

      It's probably because someone marked it with "Major Issues" without adding a comment. Which leads to this behaviour.