Var2 = (Qu3)obj; --- is this assignment statement valid or not? and please explain
Is this assignment statement valid or not? and please explain

    Var2 = (Qu3)obj;

Here are the declarations

    class Eg3 { … }
    class Qu3 : Eg3 { … }
    double d = 1.23;
    Object obj = null;
    Eg3 var1 = new Eg3();
    Qu3 var2 = new Qu3();

Help would be much appreciated.

Bob
Var2 = (Qu3)obj; --- is this assignment statement valid or not? and please explain
===

Is this assignment statement valid or not? and please explain

    Var2 = (Qu3)obj;

Here are the declarations

    class Eg3 { … }
    class Qu3 : Eg3 { … }
    double d = 1.23;
    Object obj = null;
    Eg3 var1 = new Eg3();
    Qu3 var2 = new Qu3();

Help would be much appreciated.

Bob