headers

when we create a class (and thats header)say classX=(classX.cpp+classX.h) and want to use in a main.cpp do i need to also compile the classX.cpp before using it in main.cpp?
It doesn't matter the order in which you compile classx.cpp and main.cpp.

However, both need to be compiled before you can link them together into an executable.
Topic archived. No new replies allowed.