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. I am trying to figure out what our Professor did w
View Tutorial          By: Abhishek at 2011-04-09 23:31:28

2. Best
Thanks

View Tutorial          By: Sujit at 2009-01-12 22:38:08

3. i want full of information abt java
View Tutorial          By: sagar at 2010-08-23 06:42:40

4. How to write data from keyboard to a file in java?
View Tutorial          By: Ashish Ranjan at 2011-07-13 01:04:38

5. hi..i can send 4 or 5 sms per mnt..is there any wa
View Tutorial          By: rahul at 2011-02-11 00:17:51

6. Your explanation is perfectly clear and not in nee
View Tutorial          By: Percy at 2009-06-08 14:14:39

7. Is there any way to show the dynamic bean value in
View Tutorial          By: Bala at 2008-05-04 01:40:18

8. A useful article. It answered my question about wh
View Tutorial          By: Kris Heidenstrom at 2011-05-28 04:15:05

9. I have loaded allthe 5 java files.But how to imple
View Tutorial          By: Pandiyan at 2015-08-24 08:02:32

10. when i try to compile the two files by executing t
View Tutorial          By: Brian at 2015-08-05 12:15:37