Search:

Type: Posts; User: Swapneel

Search: Search took 0.07 seconds.

  1. Replies
    6
    Views
    1,273

    Re: Inner Class Use

    Hello,
    Your code is also using inner class.I wan't to know why can't we separate the two classes as independent and with the help of getter methods of Outer Inner class , Inner class can access it's...
  2. Replies
    6
    Views
    1,273

    Inner Class Use

    class Outer
    {
    private int temp=9;
    class Inner
    {
    void getData()
    {
    System.out.println("Value of temp is"+temp);
    }
    }
Results 1 to 2 of 2