Assingning Refrences in Java : <pre><code>class A{}
class B extends A{}
class C extends A{}

public class Test {
     public static void main(String [] args){
    A a = new A();
    A b = new B();
    A c = new C();

    a = b;
    b = c;
    }
}
</code></pre>

<p>Here how can we assign child reference to parent one ? and also b and c are different object types then how we can assign one to another ?</p>
