- 博客(0)
- 资源 (1)
- 收藏
- 关注
学生老师课程数据库系统
public class juxing {
float a,b;
public juxing(float a,float b){
this.a=a;
this.b=b;
}
public float c(){
return(this.a+b)*2;
}
public float s(){
return(a*b);
}
public static void main(String[] args) {
juxing a=new juxing(3.3f,3);
float c=a.c();
System.out.println("周长C为:"+c);
float s=a.s();
System.out.println("面积S为:"+s);
}
}
2018-06-12
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人