first of all the naming convention is very inappropriate. Main.cpp should not be the file containing the class info rather it should be the file which contains 'int main'. The class definitions and declarations should be placed in separate files with proper names like 'class.h' and 'class.cpp' with include guards placed in the .h file. Then you should include the .h file of whichever class you need in the main.cpp.
Going forward when your project becomes bigger, it will be much easier to maintain it if you follow these rules.