C++ Object Oriented and Multiple Files Basics?
I'm trying to code a very very simple program with multiple files (like for Java, i have many classes, all in seperate files)
How do I achieve that?
Do I have Main.cpp, SomeObject.h, SomeObject,cpp, AnotherObject.h, and AnotherObject.cpp?
Do I also need a header file for my main program?
And how do I link all of them together? Do I have to put #include SomeObject.h, #include AnotherObject.h in my Main.cpp? Or do I just compile all of them together and they will be linked?
If I were, to say put these files into my own defined namespace, do I still use #include SomeObject.h, or do I type using SomeNamespace::SomeObject ??