Inheritance

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Spooner
    New Member
    • Oct 2006
    • 7

    Inheritance

    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?
  • dtimes6
    New Member
    • Oct 2006
    • 73

    #2
    try friend class

    Comment

    Working...