There is no argument given that corresponds to the required formal parameter

后端 未结 2 1355
失恋的感觉
失恋的感觉 2021-01-25 01:32

\"There

I don\'t have any idea about this

2条回答
  •  忘了有多久
    2021-01-25 02:19

    The error appears because the base class does not have a default constructor. You need to define a constructor in the derived class, which gets the same parameters as the constructor in the base class, and invokes that base class constructor using the base keyword as explained here

提交回复
热议问题