Group Of Methods
Anyone knows how can you make a group of methods in a .hpp file in C++?
And when you use this header file it looks like this ...
So, how to create IO and MEMORY in hpp file?
a class 'Support' with public sub-classes 'Io' and 'Memory'?
Yes, something like that. But, is that good programming?
Well, if you do need to do that for clarity in your code, I'd really consider it poor design. Granted, there are quite valid reasons for having nested classes, but I would not consider this separation one of them. Perhaps your class interface is not high-level enough, and what you have as multiple tasks could be included as one function (perhaps implemented by separate classes under the hood).