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



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. it is possible to write any synchronisation progra
View Tutorial          By: shashi kant mishra at 2013-10-14 02:54:25

2. very nice
View Tutorial          By: prasad at 2009-11-11 05:03:16

3. thank you very much....
View Tutorial          By: divya at 2013-01-06 15:50:43

4. guys you both are correct
but,java is impli

View Tutorial          By: vijay at 2011-09-08 12:12:48

5. Thanks alot that was quite helpful!
View Tutorial          By: Doaa at 2013-01-09 09:37:35

6. i am getting d following error:-

Se

View Tutorial          By: nikitha at 2013-02-07 09:23:12

7. Yes, as @ Mansi said it's really helpful.
I

View Tutorial          By: Eko SW at 2011-06-22 23:38:22

8. pls help on me to program in c++, write a program
View Tutorial          By: Hamid at 2014-12-18 20:41:40

9. You have to the point codes
View Tutorial          By: workneh yilma at 2009-01-21 02:29:21

10. "paint() sample program to draw a line in J2M
View Tutorial          By: Carlos Alberto Urrea at 2015-02-06 14:00:14