Can anyone help me understand this error? “definition of implicitly-declared ‘classA::classA()’”

前端 未结 4 953
有刺的猬
有刺的猬 2021-01-07 17:33

Heres the code:

#include 
#include 
using namespace std;

class classA
{                   
      protected:
                v         


        
4条回答
  •  情话喂你
    2021-01-07 18:07

    classA has no member named classA() to implement.

    class classA
    {
        // ....
        public:
           classA() ; // Missing the declaration of the default constructor.
    };
    

提交回复
热议问题