package exp3; class Point{ protected int x,y; Point(){} Point(int a,int b){ setPoint(a,b); } public void setPoint(int a,int b){ x=a; y=b; } }