Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (17 sloc) 413 Bytes
namespace DynamicAndDefaultImplementation
{
public class Square : IRegularPolygon
{
public int NumberOfSides { get; }
public int SideLength { get; set; }
public Square(int sideLength)
{
NumberOfSides = 4;
SideLength = sideLength;
}
public double GetArea()
{
return SideLength * SideLength;
}
}
}
You can’t perform that action at this time.