What is the "this" keyword in C# ?
Santosh Kumar
Select an image from your device to upload
class temp { int x, y; public void setXY(int x, int y) { this.x =x; this.y =y; } }
In the assignment statement, this.x and this.y refer to the class member named y and y whereas simple x and y refer to the parameter of the setXY() method.