In the code below the variable 'id' is inaccessible in the class Horse, is this an inheritance issue? An access modifiers issue? Any help is greatly appreciated.
class Animal
{
private:
int id;
};
class Horse : public Animal
{
public:
Horse(){
if((id % 2) == 1) { id++ };
}
};