Using
our here will only work if your packages happen to be defined in the same source file. As
JavaFan says, otherwise you will need to export the variable to the subclass. The fact that the variable exists in the base class means nothing to the subclass. You still have to export the variable, just as you would for packages that don't share an inheritance tree.