Class1 obj1 = new Class1();
Class2 obj2 = new Class2();
obj2.process(obj1);
obj2
now has access to all public methods and properties of obj1.
Note: I am not sure that this is what you are asking, so you may need to add some more detail to your question.