I searched for this but unfortunately failed to find matches, I have this local anonymous inner class
inside a method like this:-
new Object(){
public void open(){
// do some stuff
}
public void dis(){
// do some stuff
}
};
with 2 methods
inside it (open,dis)
and I know that if I want to use anyone of them just do
new Object(){
public void open(){
// do some stuff
}
public void dis(){
// do some stuff
}
}.open()
Now my question is What if I want to call the two methods at the same time How can I do this ?