多态基类
Polymorphic base class
以上为机器翻译结果,长、整句建议使用 人工翻译 。
你只需要将对象上传转化为基类对象不需要知道额外的信息,而这些都是通过多态实现的。
All you need to do is upcast from the derived class and never look back to see what exact type of object you're dealing with. Everything is handled through polymorphism.
youdao
应用推荐
模块上移
模块下移
不移动