Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++ 虚函数表 | dzw's blog #20

Open
idongzw opened this issue Nov 25, 2021 · 0 comments
Open

C++ 虚函数表 | dzw's blog #20

idongzw opened this issue Nov 25, 2021 · 0 comments

Comments

@idongzw
Copy link
Owner

idongzw commented Nov 25, 2021

https://blog.dzwspace.com/article/cpp-vtbl/

参考文章:C++虚函数表剖析参考文章:C++虚函数表分析参考文章:C++中基类的析构函数为什么要用virtual虚析构函数 C++ 中的多态是用虚函数实现的:子类覆盖(重写)父类的虚函数,然后声明一个指向子类对象的父类指针,如 Base* base = new Derived(); 当调用base->func(),调用的是子类的Derived::func()。 123456789101

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant