I'm having trouble understanding how to have a child class use a protected member from a parent class.
Suppose that in the parent class, I have a function, in public, that will set data_parent, a protected member, equal to some value.
Now, in the child class, I have a protected member called data_child and have a function, in public, that will return data_parent + data_child.
But, when I try to compile I receive the error " use of undeclared identifier 'data_parent' ". What am I doing wrong?