C # interface

1 //Public interface: “Animals”
2 public interface IAnimal
3 {
4 void Behavior(); //behavior methods, describing the characteristics of various animals
5 }
6
7 //Class: Dog
8 publi