Search:

Type: Posts; User: GregBrannon

Search: Search took 0.10 seconds.

  1. Replies
    6
    Views
    1,273

    Re: Inner Class Use

    Who says you can't? Of course you can do exactly as you described. Unless you're in a class and the teacher tells you one way will get a good grade and another way will get a bad grade. Do the way...
  2. Replies
    6
    Views
    1,273

    Re: Inner Class Use

    Or you could do as you've suggested, and I don't think there's anything wrong with it other than it may be more complicated than it needs to be:
    class Outer
    {
    private int temp=9;
    class...
Results 1 to 2 of 2