代码编辑器:
x
1
using System;
2
namespace RectangleApplication
3
{
4
class Rectangle
5
{
6
// 成员变量
7
double height;
8
double width;
9
public void Acceptdetails()
10
{
11
height = 3;
12
width = 4;
13
}
14
public double GetArea()
15
{
16
return height * width;
17
}
18
public void Display()