-
-
Save conanak99/a4c607e3b51ec3e1b7cb0cac9389abf4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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