java的构造方法
java的构造方法
  日期:2010-05-12 15:52:53 人气:1
  
  可以运行,源代码如下:
public class Rectangle 
{
 private double length;
 private double width;
 
 public Rectangle()
 {
  
 }
 
 public Rectangle(double length, double width)
 {
  this.length=length;
  this.width=width;
 }
 
 public void setLength(
      