• 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
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

non anonymous inner class either static or not access from descendent

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
why all between /********************************** is prohibted?? java version 1.6

package my.test;

public class AClass {
static class InnerDefaultStaticClass {}
protected static class InnerProtectedStaticClass {}

class InnerDefaultClass {}
protected class InnerProtectedClass {}
}

package my.test2;

public class DClass extends AClass{
private DClass cl = new DClass();

//****************************************************

DClass.InnerDefaultStaticClass class2 = new DClass.InnerDefaultStaticClass();
DClass.InnerProtectedStaticClass class3 = new DClass.InnerProtectedStaticClass();
DClass.InnerDefaultClass class5 = cl.new InnerDefaultClass();
DClass.InnerProtectedClass class6 = cl.new InnerProtectedClass();

//****************************************************

}
[ June 29, 2008: Message edited by: Gasan Gouseinov ]
 
what if we put solar panels on top of the semi truck trailer? That could power this tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic