JAVA初学者的问题
class MYRect {
int x1 =0
int x2 =0
}
MYRect b(int x1, int x2) {
this.x1=x1
this.x2=x2
return this
}
return this 是什么意思啊
还有上面的
MYRect b(int x1, int x2) {
this.x1=x1
this.x2=x2
return this
代码能变成这样吗
MYRect b(int x1, int x2) {
this.x1=x1
this.x2=x2
}