Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save csdear/ea205e8bc39fcd6ea0cc to your computer and use it in GitHub Desktop.

Select an option

Save csdear/ea205e8bc39fcd6ea0cc to your computer and use it in GitHub Desktop.
Basic Constructor for get / set accessor initialization
public class Lizard
{
public string Type { get; set;}
public int Number {get; set;}
public bool Health {get; set;}
public Lizard(string t, int n, bool h)
{
Type = t;
Number = n;
Healthy = h;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment