What is the purpose of separating the implementation of a class into two files: header file (.h) and source file (.cpp)? In C++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the purpose of separating the implementation of a class into two files: header file (.h) and source file (.cpp)? In C++

van you help me plz

18th Nov 2016, 3:39 PM
ben lyna
ben lyna - avatar
1 Answer
+ 1
Easier modification mainly. Also, when working on larger project usually header is written by one or more people and main function is writen by other group of people.
18th Nov 2016, 3:54 PM
shupack