C# Implicitly Typed Variable re-initialize
<p>How do I re-initialize a Implicitly Typed Variable (var) in C#?</p>

<pre><code>            var abc = new Class();
            if (a == 1)
            {
                abc = new Class1();
            }
            else if (a == 2)
            {
                abc = new Class2();
            }
            else if (a == 3)
            {
                abc = new Class3();
            }
</code></pre>

<p>Right now I have it like above and I am getting an error.</p>

<p>Cannot implicitly convert type 'Class1' to 'Class'  </p>
