private static void SingTheVerse(ISingable item) { Console.WriteLine("And on his farm there was a " + item.Name + " ee ay ee ay oh"); Console.WriteLine("With a " + item.MakeSoundTwice() + " here and a " + item.MakeSoundTwice() + " there"); Console.WriteLine("Here a " + item.MakeSoundOnce() + ", there a " + item.MakeSoundOnce() + " everywhere a " + item.MakeSoundTwice()); Console.WriteLine("Old Macdonald had a farm, ee ay ee ay oh"); Console.WriteLine(); }
static void SingVerse(ISingable singable) { // // OLD MACDONALD // Console.WriteLine("Old MacDonald had a farm. ee aye ee aye oh"); Console.WriteLine($"And on his farm there was a {singable.Name}. ee ay ee ay oh"); Console.WriteLine($"With a {singable.MakeSoundTwice()} here and a {singable.MakeSoundTwice()} there."); Console.WriteLine($"Here a {singable.MakeSoundOnce()}, there a {singable.MakeSoundOnce()}, everywhere a {singable.MakeSoundTwice()}."); Console.WriteLine($"Old Macdonald had a farm. ee aye ee aye oh"); Console.WriteLine(); }