C++ classes headers

I need some help with classes. My homework this week is to write a code that uses 2 headers and has one header set as a Derived class. I am to have the Derived class access the protected part of the base class and display it on screen. But i am kind of lost here.

My base class has string word as its protected part.

base class
protected:
string word;

But how do i write a code that would let my Derived class read it and then display it in main. (i need to set the string word to something like "This is the protected part of the base header file" and display that in main so i can show how I can access protected files.

hope you guys can understand what i am trying to say here thanks for your help
Topic archived. No new replies allowed.