Created
June 1, 2015 12:45
-
-
Save DavidArno/5d734dffe3a23f97781e to your computer and use it in GitHub Desktop.
Simplified cat
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
public class Cat | |
{ | |
public string Name { get; set; } | |
public string Color { get; set; } | |
public Cat() | |
{ | |
Cat("Unamed", "gray"); | |
} | |
public Cat(string name, string color) | |
{ | |
Name = name; | |
Color = color; | |
} | |
public void SayMiau() | |
{ | |
Console.WriteLine("Cat {0} says Miau!!!!!!!!!!", Name); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment