Skip to content

Instantly share code, notes, and snippets.

@schatekar
Created February 9, 2017 22:27
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 schatekar/e2ebadd7cc503b95c269a1bdb289f4f4 to your computer and use it in GitHub Desktop.
Save schatekar/e2ebadd7cc503b95c269a1bdb289f4f4 to your computer and use it in GitHub Desktop.
public interface IShootable
{
void Shoot();
}
public class Camera : IShootable
{
public void Shoot()
{
//Take a picture here
}
}
public class Gun : IShootable
{
public void Shoot()
{
//Hit the target
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment