static LifeInsurance[] LIArray = new LifeInsurance[20];
public LifeInsurance ( float dMonth, int startD,int startM,int startY,int label){
LifeInsurance.LIArray[LifeInsurance.counterLI] = this;
this.dMonth = dMonth;
this.startD = startD;
this.startM = startM;
this.startY = startY;
this.label = Individual.l;
this.codeLΙ = counterLI;
counterLI++;
}
我在 LifeInsurance 类中有这个数组,我想this.label = Individual.l;
从其他类中访问。
这怎么可能?提前致谢!