Private member functions in separate file?

I have a class with some standard public functions.

However, there will be a huge number of private functions for this class. Is there anyway I can put these functions in a separate file to keep the class itself much cleaner?

Thanks
You have to declare them in the class definition but you can put the definitions in other files. I don't know if you already know how to separate classes into header files (.h) and source files (.cpp). If you do then this is no different. Just create another source file and add the private member function definitions.
Last edited on
That's great - thanks.
Topic archived. No new replies allowed.