How To Implement This Operator In Java
Rate this article
0 out of 5
In this tutorial we will show you how to implement this operator in java. After viewing the video tutorial, download the source code and try to modify the code so as to get a feel of what is learned in this video tutorial.


Source Code
thisDemo

class thisDemo
{
  int a;
  thisDemo(int x)
  {
     a=x;
  }
  void add(thisDemo th)
  {
     int y;
     y=this.a+th.a;
     System.out.println("Answer is " +y);
   
  }
}


class thisTest
{
   public static void main(String args[])
   {
     thisDemo t=new thisDemo(100);
     thisDemo t1=new thisDemo(200);
     t.add(t1);
   }
}


Source Code

Joined Date : 04/02/2013
Articles
Posted
27
Messages
Posted
0


Click Here to See Full Profile
   
Author
Messages
Posted:
Post Your Comments
Name (Max 50 Chars)
Comments

 
TekTipsDownload
GateExam
Academic Projects
TekTipsExperts
Android