package cn.edu.bjut.chapter3; public class Rectangle2 { double length, width; public Rectangle2(double length, double width) { this.length = length; this.width = width; } public double area() { return (length * width); } }