This website requires JavaScript.
Explore
Help
Sign In
OrgLion-Writes
/
NotePublic
Watch
1
Star
0
Fork
You've already forked NotePublic
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
51d9001320
NotePublic
/
Software
/
Development
/
Language
/
Cpp
/
Cpp_析构方法.md
214 B
Raw
Blame
History
Cpp 析构方法
基类带有虚函数的,最好提供一个虚析构函数,并且子类重载这个虚构函数,否则将基类指针指向子类后,再去 delete 这个指针将导致内存泄漏。