java - Subclassing Inner Class from Outer Class versus other Inner Class -


I'm worried about why this is allowed

  public square fu {Class bar foo {}}  

However, this is not allowed

  public square fu {extension of square fu {class} in class bar Fooey Bar {}}  / Pre> 

The compiler has informed that it can not reference Fooey.this before the SuperTechPoint constructor.

And this permission is

  Public class Foo {static class bar} extends the Foo {} class Fooey's extension bar {}}  

What's going on here? And how can I get more information about how succession of internal category works?

Edit I came at both rather poor thoughts; Internal orbit is extensile in outer orbit and other stable internal classes are spread in the internal organs. I was not sure what was actually going on and how should I reflect this. I broke the interval classes and explained them in the outer classroom.

First of all: Do not talk about this type of evil. Actually, Java 1.1 is highly restricted. Should have been specified in the form, IMO

There is confusion that this to Foo.Fooey constructor. This external ( Foo.this ) will work, but the actual is a foo , but before supercompressor return this Regarding the use of the superkonstrator can not be given due to the rules (and in addition to being an external example, the internal example as a similar frequency is fecked). External code "in (bar) on it). It is also inaccessible due to restrictions on the use of $ 0 " (IIRC), this .

The solution to be clear is generally good in my book (unless it is a boilerplate).

  Expands the public square foot {class bar} {Fooey Bar} expands {Fooey () {Foo.this.super (); }}}  

Better yet, internal class does not extend to its outer classroom, or an extension of an internal class.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -