Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

non anonymous inner class either static or not access from descendent  RSS feed

Gasan Guseynov
Ranch Hand
Posts: 67
  • 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 = InnerDefaultClass();
DClass.InnerProtectedClass class6 = InnerProtectedClass();


[ June 29, 2008: Message edited by: Gasan Gouseinov ]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!