File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

non anonymous inner class either static or not access from descendent

 
Gasan Guseynov
Ranch Hand
Posts: 67
  • 0
  • Mark post as helpful
  • send pies
  • 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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic