By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,605 Members | 1,391 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,605 IT Pros & Developers. It's quick & easy.

Inheritance

P: 7
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?
Nov 9 '06 #1
Share this Question
Share on Google+
1 Reply


P: 73
try friend class
Nov 10 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.