I have an interface class with a default implementation and an inheriting class with its header and cpp file.
List.h
class List {
public:
virtual int search(const string searchCharacters, bool caseSensitive){return 0;}
}
MyList.h
class MyList : public List {
}
MyList.cpp
int MyList::search(const string searchCharacters, bool caseSensitive)
{
// Implementation code
}
Now, I'm getting member function not declared in 'MyList' for some reason. I have a Java background and still have some issues adjusting to C++ way of things. Why isn't the definition being carried through the MyList header file?