Should we define all the methods in source files which are declared in headers.? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Should we define all the methods in source files which are declared in headers.?

is it necessary to define all methods in source files, which are declared in header files. Even if they have empty definition like an empty constructor for example?

11th Jan 2017, 1:48 PM
Mourya Karan
Mourya Karan - avatar
1 Answer
- 1
is depend of what you want , cause u can indefind method like in the consept of interface
12th Jan 2017, 6:37 PM
Mohamed Ayachi
Mohamed Ayachi - avatar