Listing 3 shows the top-level class named Y.
Local class B extends this class to illustrate the difference
Listing 3. The top-level class named Y. |
---|
class Y{ protected int yVar = 2000; public String toString(){ return "toString in class Y, yVar = " + yVar; }//end overridden toString }//end class Y |
File: ci.htm | [Next] | [Prev] |