by Dinesh Thakur

 

class Rectangle

          {
               int l,b,a;
               void setValue(int x,int y)
                   {
                       this.l=x;
                       this.b=y;
                   }
                   int area()
                      {
                              a=this.l*this.b;
                              return (this.a);
                          }
          };
                   class DemonstrationthisPointer
                      {
                          public static void main(String args[])
                             {
                                 Rectangle rect = new Rectangle();
                                 rect.setValue(58,8);
                                 System.out.println("Area of Rectangle is : "+rect.area());
                             }
                      };

Demonstration of this Pointer