摘要:
所有的类都派生自Object类,可以把派生类(Derived Class)直接赋值给基类(Base Class),基类赋值给派生类的时候需要进行显示转换 sunclass = (sunclass) fathertemp。 o is xxclass o as xxclass 这两个都不会报错,第一个返 阅读全文
posted @ 2021-11-16 15:37
ltx_zero
阅读(54)
评论(0)
推荐(0)
浙公网安备 33010602011771号