blob: cac648fad5838ad086a15c09e36ec03176bb9930 [file] [log] [blame]
package p;
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);
}
}