为什么不rtype b = new rtype
而要base b= new rtype
根据你所说的 我猜出了个大概 应该跟继承有关系。
rtype 是子类 base 是基类也就是父类。这样new出来时new出了一个子类的对象。以便于用子类的方法。