Class X is being used inside class Y. Class X has a function xMethod that is not used inside class Y.
Can I use reflection on Class Y to invoke the xMethod on Y's xInternalVar?How?
class X {
void xMethod (){
//some code
}
class Y {
X xInternalVar = new X();
}