public class Test{
ClassB fieldB;
public Test(ClassA instanceA){
fieldB = new ClassB();
fieldB.setOnClickListener(new OnClickListener() {
@Override
public void onClick() {
ClassC.aStaticMethod(_____);
}
});
}
}
I want to use the instanceA object which is passed as parameter to the constructor of ClassA in the blank. How can I do this? Thanks.