public void CanOverrideMethods() { Salmon testSalmon = new Salmon(); Eel testEel = new Eel(); Shark testShark = new Shark(); Assert.Equal("yummy", testSalmon.Sushify()); Assert.Equal("yummy", testEel.Sushify()); Assert.Equal("yucky", testShark.Sushify()); }
static void Main(string[] args) { Console.WriteLine("Welcome to Lab 06!"); Console.WriteLine("Today we're going to make some animals. Let's start off with a salmon!"); Salmon salmon1 = new Salmon(); Console.WriteLine("Okay, we have salmon now. Now let's turn it into sushi!"); Console.WriteLine(salmon1.Sushify()); Console.WriteLine("\nThank you for playing! Press any button to exit."); Console.ReadKey(); }