public Rectangle(double width, double height) { this.Width = ShapesParamsValidation.CheckWidth(width); this.Height = ShapesParamsValidation.CheckHeight(height); }
public Square(double side) { this.Width = ShapesParamsValidation.CheckSquareSide(side); this.Height = ShapesParamsValidation.CheckSquareSide(side); }