> 其他 >
用JAVA写一个程序,求N个不同形状的图形的总面积.
人气:198 ℃ 时间:2020-05-19 18:07:30
解答
public interface shape{public double area();} public class rectangle implements shape {}public class circle implements shape {}public class triangle implements shape {}
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版