This is a general outline of my code. I am wondering why I have trouble accessing the protected members as such. Please let me know if what I have written is not enough info:
Code:struct node { node* child //... } struct node2 { node2* sibling //... } class one { public: void a(); protected: node* current; }; class two : public one { public: void b() private: node2* current2; }; . . . void two::b() { //the linked list is NULL for functions in class two but in class one it is complete and works as expected. if(current->child != NULL) // never proceeds through the if statement when I want it too... { //stuff a(); } else { return; } }