Is defining a new class in separate files(in CODE BLOCKS) in C++ is really beneficial ? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponse
+ 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