Last active
December 17, 2015 18:41
-
-
Save blizzarddreams/49573b35f743eeb5ff66 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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