C#程序设计(5-2)
来源:百度知道 编辑:UC知道 时间:2024/05/15 03:17:02
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Drawing.Drawing2D;
namespace SquareTest
{
public class Square
{
public Square()
{
}
private double borderSize;
private Point location;
/// <summary>
/// 正方形开始位置
/// </summary>
public Point Location
{
get { return location; }
set { location = value; }
}
/// <summary>
/// 边长
/// </summary>
public double BorderSize
{
get { return borderSize; }
set { borderSize = value; }
}
/// <summary>
/// 获得正方形的周长
/// </summary>
/// <returns></returns>