Is it possible to instantiate an object and pass a reference to that new object itself as one of the parameters without modifying the code in the class?
Example:
SuperObject obj = new SuperObject(<"pointer to this new SuperObject">);
Thanks!
edit:EMPHASIS: I do not want to modify the code inside the class. The this operator does not help!
No, you cant. If you want to set the object as one of its members, you should look for another method that allows you to set that member, and pass the object in to that method: