Essential C# Interfaces  Suggest an edit

Implementing multiple interfaces

public interface IAnimal 
{
    string Name { get; set; }
}

public interface INoiseMaker
{
    string MakeNoise();
}

public class Cat : IAnimal, INoiseMaker
{
    public Cat() 
    {
        Name = "Cat";
    }

    public string Name { get; set; }

    public string MakeNoise()
    {
        return "Nyan";
    }
}


Table Of Contents
22 Enum
25 GUID
41 Interfaces
107 Stream
108 Timers
  ↑ ↓ to navigate     ↵ to select     Esc to close