If I have two separate files for a class (a header file and a file containing all the member function definitions), and in the header file I have something like this:
Code:
#include<iostream>
#include "SomeOtherClass.h"
using namespace std;
can I then leave out all this stuff in the file where I define all the methods of the class (and just #include the header for that class and nothing else)? do I even need to put them in the header class, since the header doesn't actually call any functions or do any operations? would it be better to just put them in the definition file? or do they need to be in both? thanks.