blob: 466faf20be49b70222440e386ee34f94fa45e921 [file] [log] [blame]
public class ProtectConstructor2_in {
private int fX, fY;
private ProtectConstructor2_in/*]*/(int x, int y) {
fX= x;
fY= y;
}
public int getX() {
return fX;
}
public int getY() {
return fY;
}
public static void main(String[] args) {
int y= 20;
ProtectConstructor2_in pc= createProtectConstructor2_in(15, y);
System.out.println("Value = " + Integer.toHexString(pc.getX() + pc.getY()));
}
public static ProtectConstructor2_in createProtectConstructor2_in(int x, int y) {
return new ProtectConstructor2_in(x, y);
}
}