A
Alex Ochoa
Here's my problem:
I have an object A that instantiates both objects B and C, and I want B
to get something from C. My compiler is complaining that B doesn't
recognize C. I made sure C is a public object in A. Is there a clever
way of fixing this?
The only solution (which I don't like too much) is to simply make A do
everything C is supposed to do, so that B gets its information from a
public variable in A.
I have an object A that instantiates both objects B and C, and I want B
to get something from C. My compiler is complaining that B doesn't
recognize C. I made sure C is a public object in A. Is there a clever
way of fixing this?
The only solution (which I don't like too much) is to simply make A do
everything C is supposed to do, so that B gets its information from a
public variable in A.