public class PositivePoint extends Point{
int bx=0,by=0;
public PositivePoint() {
super(0,0);
}
public PositivePoint(int x, int y) {
if(x<0 || y<0)
{
move(0,0);
}
else
{
move(x,y);
}
}
public void move(int x, int y) {
if(x>0 && y>0)
{
move(x,y);
bx=x;
by=y;
}
else {
move(bx,by);
}
}
}