What is the smart way to call and create classes each other type? I am very new to C++ and I come from a very OO background in Java, and I am having troule rapping my mind around pointers. I would love if you could show me how I should write my code to do the function I want AND send me in the right way of what to do in the future.
The error I get is a "invalid use of incomplete type 'class GameManager'", as well as "forward declaration of 'Class GameManager'. I have tried all solutions that I could find, and nothing is making sense to me.
A forward declaration only says that a particular class will be defined later, so it's ok to reference it or have pointers to objects, etc. However a forward declaration does not say what members a class has, so as far as the compiler is concerned you can't use any of them until <YOUR CLASS> is fully declared.