I have a class, within which I have the need for several different data structures. I have no use for these structures outside of the class, so I've been declaring them like this:
A few questionsCode://an obviously simplified version class myClass { struct dataStructure { int data; char letter; } dataStructure foo; }
1) this does prevent dataStructure from being used outside of myClass, correct?
2) are there any performance problems with doing it this way?
3) ...other concerns about doing it this way?



LinkBack URL
About LinkBacks


