multiple definitions error in c++ and solution to solve this issue
) You solve this by ‘defining the class’ in only one cpp file. Why would you want to define it in two files? 2) Don’t define things in header files, only declare them. There are exceptions to this rule, for instance inline functions. Also classes themselves can defined more than once (by this I mean … Read more