I’m relatively new to C++ (I’ve done a fair amount of Java beforehand) and I’m majorly struggling with inheritance. All I want to do is run the GenerateWordData() function in the attached code in a different class but I can’t, for the life of me, get it to work.
Its difficult to diagnose the problem without knowing the exact error. Could you please edit your post with the compiler error (assuming this is compiler related) and/or your WordBank header file.
With that said, my first guess would be that your GenerateWordData function is declared protected/private within WordBank.h. If this is true then it’ll never be accessible outside the class, which conveniently enough sounds like what is happening here.