Created
April 15, 2018 20:28
-
-
Save anupavanm/c0f2d1933d31fca1ff5f0c5cc5cb7407 to your computer and use it in GitHub Desktop.
This file contains 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 Sheep | |
{ | |
public string Name { get; set; } | |
public string Category { get; set; } | |
public Sheep(string name, string category) | |
{ | |
Name = name; | |
Category = category; | |
} | |
public Sheep Clone() | |
{ | |
return MemberwiseClone() as Sheep; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment