怎么办呐,看看吧别的代码也有这个错误

不会

img

是不是没有无参构造方法
Cylinder类中,加一个无参构造方法。

public Cylinder(){}

看看构造函数是不是必须传参数,没有默认构造函数。