Hi,
let's say I have two classes: mainApp and myThread (extends Thread).
mainApp creates a myThread object, which does this and that, and once it does something specific, it should tell mainApp that it I've done it. Is there any neater way to do this than tell the myThread object (for example in constructor parameters: myThread th = new myThread(this)
which object called it?
let's say I have two classes: mainApp and myThread (extends Thread).
mainApp creates a myThread object, which does this and that, and once it does something specific, it should tell mainApp that it I've done it. Is there any neater way to do this than tell the myThread object (for example in constructor parameters: myThread th = new myThread(this)