Kata to practice object oriented programming.
This is a reduced version of the song, with only 5 verses.
Create a program that returns the list of verse with a part of The House That Jack Built song.
This is the house that Jack built.
This is the malt that lay in
the house that Jack built.
This is the rat that ate
the malt that lay in
the house that Jack built.
This is the cat that killed
the rat that ate
the malt that lay in
the house that Jack built.
This is the dog that worried
the cat that killed
the rat that ate
the malt that lay in
the house that Jack built.
Create a program that returns the list of verse with a part in reverse order of The House That Jack Built song.
This is the dog that worried.
This is the cat that killed
the dog that worried.
This is the rat that ate
the cat that killed
the dog that worried.
This is the malt that lay in
the rat that ate
the cat that killed
the dog that worried.
This is the house that Jack built
the malt that lay in
the rat that ate
the cat that killed
the dog that worried.
Create a program that returns the list of verse with echo of a part of The House That Jack Built song.
This is the house that Jack built
the house that Jack built.
This is the malt that lay in
the malt that lay in
the house that Jack built
the house that Jack built.
This is the rat that ate
the rat that ate
the malt that lay in
the malt that lay in
the house that Jack built
the house that Jack built.
This is the cat that killed
the cat that killed
the rat that ate
the rat that ate
the malt that lay in
the malt that lay in
the house that Jack built
the house that Jack built.
This is the dog that worried
the dog that worried
the cat that killed
the cat that killed
the rat that ate
the rat that ate
the malt that lay in
the malt that lay in
the house that Jack built
the house that Jack built.
Create a program that returns the list of verse with echo of a part of The House That Jack Built song.
This is the dog that worried
the dog that worried.
This is the cat that killed
the cat that killed
the dog that worried
the dog that worried.
This is the rat that ate
the rat that ate
the cat that killed
the cat that killed
the dog that worried
the dog that worried.
This is the malt that lay in
the malt that lay in
the rat that ate
the rat that ate
the cat that killed
the cat that killed
the dog that worried
the dog that worried.
This is the house that Jack built
the house that Jack built
the malt that lay in
the malt that lay in
the rat that ate
the rat that ate
the cat that killed
the cat that killed
the dog that worried
the dog that worried.
Reduce duplicity.
Tip: Composition over inheritance.