Skip to content

Instantly share code, notes, and snippets.

@bookercodes
Created July 25, 2015 09:53
Show Gist options
  • Save bookercodes/c6b50df59cd45e0df052 to your computer and use it in GitHub Desktop.
Save bookercodes/c6b50df59cd45e0df052 to your computer and use it in GitHub Desktop.
public class Circle
{
public int Radius { get; private set; }
public Point Point { get; private set; }
public double Area => Math.Pow(Radius, 2) * Math.PI;
public double Perimiter => 2 * Math.PI * Radius;
public Circle(Point point, int radius)
{
Point = point;
Radius = radius;
}
public override string ToString() => "A textual representation of the object..";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment