My question is how do you pass a handle of a class to a second class so the second class can use the first class. I'm not talking about extending, implementing, super, or parent/child. I want to pass a handle of a class to a class that creates a window and inputs and outputs data from the users. The data should be passed to the first class to process. These classes should be as independant as possible so they can be replaced as needed.