class Point { private int x,y; Point() { x=0; y=0; } Point(int x,int y) { this.x=x; this.y=y; } public void setX(int x) { this.x=x; } public void setY(int y) { this.y=y; } public void setXY(int x,int y) { this.x=x; this.y=y; } void display() { System.out.println(x+" , "+y); } public static void main(String[] args) { Point obj=new Point(5,3); obj.display(); } }