假设我有一个名为Enemy的基类和一个名为Ogre的派生类.
这两种方式创建实例有什么区别:
Enemy newOgre = new Ogre(); Ogre newOgre = new Ogre();
c# class
c# ×1
class ×1