练习2:根据下图实现类.在TestCylinder类中创建Cylinder类的对象,设置圆柱的底面半径和高,并输出圆柱的体积 import scala.beans.BeanProperty object work04 { def main(args: Array[String]): Unit = { val area1=new TestCylinder var area2=new area1.Cylinder var areanum:Double=area2.findArea(5.0) prin…