一个类继承的错误

来源:互联网 发布:淘宝店铺销量提升 编辑:程序博客网 时间:2024/05/02 04:58

 想写一个类,继承于另外一个类,结果出现了问题: No overload for method 'ClassName' takes '0' arguments

原因:(1)被继承的父类没有一个参数为空的构造函数

(2)被继承的父类是一个sealed的类。

The father class  doesn't have a constructor that doesn't take any arguments.

or the father class marked by sealed,

check it