interface IAnimal { void MakeSound(); // no body, and no access modifier } class Cat : IAnimal { public void MakeSound() { Console.WriteLine("The cat says: meow"); } }
Click Run to execute this code.