Skip to content

Instantly share code, notes, and snippets.

@blizzarddreams
Last active December 17, 2015 18:41
Show Gist options
  • Select an option

  • Save blizzarddreams/49573b35f743eeb5ff66 to your computer and use it in GitHub Desktop.

Select an option

Save blizzarddreams/49573b35f743eeb5ff66 to your computer and use it in GitHub Desktop.
class Dog
{
public string Name { get; set; }
private static int DogCount = 0;
public Dog(string name)
{
this.Name = name;
DogCount += 1;
}
public void Bark()
{
Console.WriteLine("{0} goes Bark!", this.Name);
}
override public string ToString()
{
return String.Format("<Dog:{0}>", this.Name);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment