problem on returning values..
i am trying to make an application that has two objects, the textfield and the clear button..
made up of two classes the main class which where the textfield and button stays and another class that is called everytime i click the clear button(a confirmation dialog box)..
everytime i would click the clear button, a dialog box should pop up asking the user if he really is sure about clearing the texfield..
if the user would choose yes, the callable class would return a digit to the main class which is going to be the cue of what the program should do.
is that possible? making a sub class return a value to the class that called it?