I have two files:
File1.cpp File2.cpp
File1 is my main class which has the main method, File2.cpp has a class call ClassTwo and I want to c
you need to forward declare the name of the class if you don't want a header:
class ClassTwo;
Important: This only works in some cases, see Als's answer for more information..