I have a question about classes and header files. As I see the trend of reusing classes, I would like to start building the classes in their own file, and be able to call it, and use(#include "class.h") to include them. I am a little bit confused because I understood the part about defining a header file which basically shows how to put the declarations or prototypes into a header file. I also read that you must still compile the classes you wish to use. Do I need a header file and a .cpp file both to use a custom defined class? or must I compile the program and "source" or class file separate and combine them into an executable? I use GNU compiler (g++ command line and notepad++),
Thanks,
Dani