发布网友 发布时间:2024-10-30 03:04
共1个回答
热心网友 时间:2024-10-30 03:14
public class FishClass
{
double _Weight;
public double Weight
{
get {return _Weight;}
set{_Weight=value;}
}
double _length;
public double Length
{
get {return _length;}
set{_length=value;}
}
public void Show()
{
Console.WriteLine("重量:"+_Weight+"长:"+_length);
}
}