How to get the values of an array from another class?

So classB is inheriting from classA, and classA has array1[9] declared and values assigned to it from reading through a file. When I call array1[i] in classB using a for loop, there's no values assigned to array1 in that class.

How can I get the values of array1[9] and use them in classB? I'm thinking to use pointers but I'm not sure how to go about it.
Last edited on
Could you please post your code as well? Might be easier to understand :)
Topic archived. No new replies allowed.