Is defining a new class in separate files(in CODE BLOCKS) in C++ is really beneficial ? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Resposta
+ 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