Skip to content

Instantly share code, notes, and snippets.

@tnngo2

tnngo2/Dog.cs Secret

Created April 13, 2012 04:22
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 tnngo2/e63d1cf32b03cd888686 to your computer and use it in GitHub Desktop.
Save tnngo2/e63d1cf32b03cd888686 to your computer and use it in GitHub Desktop.
interface IAnimal
{
void Habitat();
}
class Dog: IAnimal
{
public void Habitat()
{
Console.WriteLine("Can be housed with human beings");
}
static void Main(string[] args)
{
Dog objDog = new Dog();
objDog.Habitat();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment