}
text类
package 实训j;
import 实训jshape;
public class shapetext {
public static void main(String[] args) {
shapeshapename="长方形";
shape s1=new shape(); //实例化di7zhang 对象
s1setxx(90f,98f);//对setxx赋值
s1count();//访问count值
s1count1();//访问count1的值
Systemoutprintln(s1shapename+s1getzhouchang()+s1getmianji());
}//输出shapename,zhouchang,mianji的值
}