gfvalvo:
But, this seems cheesy and ugly since it requires adding [index] to every access.So, the only other choice is a getPrivateValue() method?
uint32_t myClass::getPrivateValue() {
return privateValue;
}
your example is a bit strange to me, a pseudo-code analogy:
Class Dog{
private:
Leg _leg;
};
...
...
Dog dog;
Leg front;
front = dog;
... corrected my code