I am working on project.
I need to Access parent class methods of the parameter of a generic class.
The structure is like:
public interface XYZ{
methodToAccess1();
}
public interface PQR{
methodToAccess2();
}
An instance through which I have to access this method:
ABC<Tparams extends XYZ, Tresults extends PQR> obj;
The XYZ
and PQR
interface are implemented by various other class and these methodToAccess()
are implemented in these classes. So my aim is to access these implemented methods, through obj.
So is there anyway i can access methodToAccess()
from obj object??