Programming Tutorials

Comment on Tutorial - this Pointer in C++ By Jagan



Comment Added by : Ajay Khowal

Comment Added at : 2012-07-13 16:25:42

Comment on Tutorial : this Pointer in C++ By Jagan
Hey guys i've the simple one....
class thiskeyword
{
int x,y;
void getdata(int x , int y)
{
this.x=x;
this.y=y;
}
void display()
{
System.out.println(x);
System.out.println(y);
}
public static void main(String s[])
{
thiskeyword t=new thiskeyword();
t.getdata(10,11);
t.display();
}
}


View Tutorial