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);}
添加回答
举报
0/150
提交
取消