Can I use the accessor methods (getter and setter) of a java class inside this class?

前端 未结 0 2011
醉酒成梦
醉酒成梦 2021-01-14 10:20
private int x;
private int y;

public Point(int x, int y){
    this.x = x;
    this.y = y;
}

public void setY(int y){
    this.y = y;
}    

public int getY() {
            


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题