定义一个圆,求圆的面积TestCircle.javaclassPoint{privatedoublex;privatedoubley;Point(doublex1,doubley1){x=x1;y=y1;}publicdoublegetX(){returnx;}publicdoublegetY(){returny;}publicvoidsetX(doublei){x=i;}publicvoidsetY(doublei){y=i;}}classCircle{privatePointo...
查看全文