im not sure what "interface does". ive tried finding help in tutorials but cant find anything that explains what it does.

could anyone explain what this code does?

public interface IAnimal {

int Legs { get; set; }

string Walk();
}

public class Dog : IAnimal {

public int Legs {
get {
return 4;
}
set {
}
}

public string Walk() {
return "I want to run";
}
}