如果我有这样的课程Base
:
public static Tab thisTab = new TabClass(5200, "thisItem");
public final static Item thisItem = new SomeClass(par1, par2);
在TabClass
课堂上,我希望能够从中访问一些信息thisItem
,但不TabClass
知道thisItem
public TabClass(int par1, String par2) {
int num;
Base.(Here is where i need the item that par2 is the name of).ID = num;
}
在查找 ID 的值时,我如何以某种方式获得par2
表示实际可用的字段?