我只把你的class FindAreas 名字改为与文件名相同
运行没有错误,结果如下
inside Area for Rectangle.
Area is 45.0
inside Area for Triangle.
Area is 40.0
Area for Fifure is undefined.
Area is 0.0
Press any key to continue...
运行没有错误,结果如下
inside Area for Rectangle.
Area is 45.0
inside Area for Triangle.
Area is 40.0
Area for Fifure is undefined.
Area is 0.0
Press any key to continue...
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货