Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (14 sloc) 386 Bytes
namespace InterfaceProperties
{
public class SquareFromInterface : IRegularPolygon
{
public int NumberOfSides { get; }
public int SideLength { get; set; }
public SquareFromInterface(int sideLength)
{
NumberOfSides = 4;
SideLength = sideLength;
}
public double Area => SideLength * SideLength;
}
}
You can’t perform that action at this time.