I have the following School class which contains a inner Office class:
class School {
class Offcie {
Office() {
...
}
}
}
In another place, I get an instance of School named mySchool.
The normal way to instantiate Office is :
School mySchool = new School();
Office myOffice = mySchool.new Office();
But how to use java reflection to get an instance of Office by using mySchool instance ?