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!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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 Antwort
+ 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