I have a project written in C++, and one of the functions in this project is “parse specified file”. This function consists of several different function classes in the project code, and these function classes have many public functions. Now I want to create an abstract class for it and plan to put all the common functions of these function classes into this abstract class as interfaces. Is it better to put all the functions of all the functional classes in one abstract class or is it better to have separate abstract classes for different functional classes.
I tried to put all the function class utilities all in the same abstract class, but that makes for a lot of interfaces in that abstract class, which I don’t feel is very applicable for later calls and maintenance.