Q:

C++ Class functions into groups

I am just here to ask if there's any way to group class functions in C++ into different "subgroups". (SerialPort functions, DataManagement functions, Encryption functions, ...)
I would like to use object to call that function from some "group" (I don't know how to call it)
For example saving current bool would be obj.save()  (save() located in group named DataManagement) or obj.send() (send() located in group named SerialPort).
I am just wondering if that would be possible, to just group class functions.

A:

You could do it by making a separat class for each group and multiple inheritance them
class MultiResponsible : public SerialPort, DataManagement, Encryption {
...
}

That way you are on a the way to Single Responsibility principle.

