Is defining a new class in separate files(in CODE BLOCKS) in C++ is really beneficial ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is defining a new class in separate files(in CODE BLOCKS) in C++ is really beneficial ?

13th Apr 2017, 8:57 AM
Khalidh Ahamed
Khalidh Ahamed - avatar
1 Answer
+ 7
It is similar to defining a header... Thus, it allows you to not only use the class for several cpp files, but at the same time put non member functions for use in cpp files...
13th Apr 2017, 9:07 AM
Kinshuk Vasisht
Kinshuk Vasisht - avatar