i have a protected member variable (actually i made it public but the code still doesnt compile) in my base class header file
vector<string> vocabulary;
i create derived classes
#include "Person.h"
class FemalePerson : public Person
derived classes have a private function
void createVocabulary();
the compiler gives an unknown identifier error for the variable vocabulary when it encounters it in
createVocabulary()
vector<string> vocabulary;
i create derived classes
#include "Person.h"
class FemalePerson : public Person
derived classes have a private function
void createVocabulary();
the compiler gives an unknown identifier error for the variable vocabulary when it encounters it in
createVocabulary()