Getting a variable from a class

I have just created a class ‘ClassA’ that loads an XML file.Within that class I have a public function that navigates through the XML and populates arrays with the XML content.

I am now creating another class, which will be called ‘ClassB’ which I plan to extend ‘ClassA’.

>From ‘ClassB’ I would like to reference the array variable (which is not in the constructor) to re-use in the ‘ClassB’ class. I have tried tons of different ways all of which I get undefined.

Could anyone help?

Cheers