I'm learning to code, but there are things that i still don't know. As it is difficult to me explain what I want, here I show the code.
public class classOne {
classTwo object = new ClassTwo();
(...)
public void WhenClassTwoHasEnded {
(...)
}
}
public class classTwo {
public classTwo () {(...)}
public classTwoAsyncStuff {
(...)
notifyEnd();
}
public void notifyEnd() {
//How I can call WhenClassTwoHasEnded from here?
}
}
Usually I always find the answer to my questions on Stack Overflow, but I've been searching for a while and have not found anything, because of my English.