class Area{
double F(double f){
return 3.14*f*f;
}
double G(double X,double Y){
return X+Y;
}
}
class Circle extends Area{
double F(double f){
return 2*3.14*f;
}
}
public class TestArea {
double lenght,sum;
Circle yuan=new Circle();
//yuan.F(5.0);
}
栗刀刀
相关分类