Hi there, I was wondering if there was a way to copy a protected variable over to another child class.
Base class: Blog
Child classs: Maker and Viewer
Now, I want the viewer to be able to see the list of messages that the Maker has. However, I made Post function that is inherited from the Blog function. I made two Objects of type Maker and Viewer. That's why I can't get the message value in Maker. Is there a way to copy the message from Maker to Viewer?
Base class: Blog
Child classs: Maker and Viewer
Now, I want the viewer to be able to see the list of messages that the Maker has. However, I made Post function that is inherited from the Blog function. I made two Objects of type Maker and Viewer. That's why I can't get the message value in Maker. Is there a way to copy the message from Maker to Viewer?
Comment