C++:虚表指针、虚表、虚函数和动态多态
摘要:
class Base { public: virtual void show() { std::cout << "Base show" << std::endl; } }; class Derived_1 : public Base { public: void show() override { 阅读全文
posted @ 2024-05-29 17:09 Toriyung 阅读(14) 评论(0) 推荐(0) 编辑