public static void Main()
var firstDog = new Dog();
firstDog.GiveName("Rover");
var firstKangeroo = new Kangeroo();
public abstract class Animal
Console.WriteLine("I have moved!");
public interface INameable
void GiveName(string name);
public class Dog : Animal, INameable
private string Name { get; set; }
public void GiveName(string name)
Console.WriteLine("My name is " + Name);
public class Kangeroo : Animal, IJump
public void Jump(int height)
Console.WriteLine("I am a Kangeroo and have jumped " + height.ToString() + " meters");