Does multiple cpp files correspond to multiple compilation units?

Posted by Rahul on Stack Overflow See other posts from Stack Overflow or by Rahul
Published on 2010-05-28T12:25:01Z Indexed on 2010/05/28 12:32 UTC
Read the original article Hit count: 490

Filed under:
|

Hello All,

Suppose, we have a big Class. and we don't want to break it. In order to maintain code suppose we have created a multiple example1.cpp, example2.cpp, example3.cpp files for single example.h file for class cexample.

Does this correspond to multiple compilations units? What is the best approach to handle such big classes?

Any suggestions and comments are appreciated.

Thank you, RAHUL

© Stack Overflow or respective owner

Related posts about c++

Related posts about best-practices