what about making the Data as static?
class X
{
public:
static uint32_t Data;
};
Improved, you have to mention public where inhering from the base class. (
If you do not choose an inheritance type, C++ defaults to private inheritance
)
class Y : public X
{
public:
};