• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Diff. b/w Names Inner,Anonymous,Local..

 
Ranch Hand
Posts: 782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is a problem in namimg convention of classes.
If someone says "Inner Class".Then what we think that which class is he refering.That is either Local,Anonymous,satic or non-static Inner Class.
In my opinion he is refeing to non-static inner class.Is there any generalization in naming?.
Bye.
Viki.
 
Ranch Hand
Posts: 1246
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
there are:
1)Top-level Nested Classes and Interfaces
2)Non-static Inner Classes
3)Local Classes
4)Anonymous Classes.

I think it is safe to say Inner Classes are
non-static inner classes, Local Classes, Anonymous
classes.
Any other are Nested Classes and Interfaces.
so generalization in naming:
1)Inner classes
2)top level nested class
3)top level interface
or not!!
 
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think you can generalize and say that any class (static or non-static) declared within another class is an inner class. The compiler will create Outer$Inner.class files for each inner class/interface.
[ January 03, 2002: Message edited by: Jim Hall ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic