Java Class Definitions
<p>Is there a difference in b/w class inheritence and nesting .
Or are they both the same 
we can access super class variavle by super keyword 
how to access innerclass variable.</p>

<p>class Outerclass</p>

<p>{</p>

<p>static int c;</p>

<p>int d=5;</p>

<p>static class Inner</p>

<p>{</p>

<p>int a =9;</p>

<p>}</p>

<p>class NestedInner</p>

<p>{</p>

<p>int b=10;</p>

<p>}</p>

<p>}</p>

<p>class Test</p>

<p>{</p>

<p>public static void main(String args[])</p>

<p>{</p>

<p>Outerclass Oc=new Outerclass();</p>

<p>Outerclass.Inner n=Oc.new Inner();</p>

<p>System.out.println("....a is...."+n.a);</p>

<p>}       </p>

<p>}</p>
