Skip to content

Instantly share code, notes, and snippets.

@conanak99

conanak99/i2.cs Secret

Last active May 7, 2016
Embed
What would you like to do?
public interface IAnimal {
void Eat();
...
void Swim();
void Fly();
}
public class Fish : IAnimal {
public void Eat () {}
...
public void Swim() {}
public void Fly() { throw new Exception("Cá éo biết bay"); }
}
public class Bird : IAnimal {
public void Eat () {}
...
public void Swim() { throw new Exception("Chim éo biết bơi"); }
public void Fly()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment