public class Base
{
public virtual void SomeOtherMethod()
{
}
}
public class Derived : Base
{
public new void SomeOtherMethod1()
{
}
}
**Base b = new Derived();
Derived d = new Derived();
Derived d=new Base();**
我无法理解上面这三行的对象实例化?在派生类的情况下,我对如何实例化对象的概念有些困惑。有人可以帮助我了解这些概念吗?
混淆了等号的左右部分?