Created
July 25, 2015 09:53
-
-
Save bookercodes/c6b50df59cd45e0df052 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
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