related to abstract class reference holding object of its derived class
<p>class A is abstract and class B extends class A
now class A reference can hold object of class B,that is</p>

<pre><code>A aObj = new B();
</code></pre>

<p>and assume class B has some extra methods....
like</p>

<pre><code>class A
{
public show();
}
class B extends A
{
public show(){}
public method1(){}
private method2(){}
}
</code></pre>

<p>now tell me what things variable aObj can access from class B
can it access everything?</p>
