这段代码请赐注释
书上的代码,没注释,看不太懂麻烦大家加个注释,谢谢
最好能详细点。。。
package com.lzw;
public class U3 {
private float height;
private float width;
public U3(float height,float width){
this.height=height;
this.width=width;
}
public float square(){
return height*width;
}
public static void main(String args[]){
U3 u=new U3(3.5f,4.5f);
System.out.println(u.square());
}
}