Skip to content

Instantly share code, notes, and snippets.

@conanak99
Last active May 7, 2016 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save conanak99/a4c607e3b51ec3e1b7cb0cac9389abf4 to your computer and use it in GitHub Desktop.
Save conanak99/a4c607e3b51ec3e1b7cb0cac9389abf4 to your computer and use it in GitHub Desktop.
public interface IAnimal {
void Eat();
void Drink();
void Sleep();
}
public class Dog : IAnimal {
public void Eat () {}
public void Drink () {}
public void Sleep () {}
}
public class Cat : IAnimal {
public void Eat () {}
public void Drink () {}
public void Sleep () {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment