How can I derive a class that has a constructor that takes some arguments?
//The construction in base class:
BaseClass::BaseClass(int inArgument) :
m_args (inArgument) // where m_args is a public/protected member of the base class
{
}
//The construction of derived class:
DerivedClass::DerivedClass(int inArgument) :
m_args (inArgument) // where m_args is a public/protected member of the derived class
{
}
after compiling I get: Error 1 error C2512: 'BaseClass' : no appropriate default constructor available
I am a beginner c++ programmer...