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
fd01d8c609
NotePublic
/
Software
/
Development
/
Language
/
Cpp
/
Cpp_析构方法.md
4 lines
214 B
Markdown
Raw
Blame
History
# Cpp 析构方法
基类带有虚函数的,最好提供一个虚析构函数,并且子类重载这个虚构函数,否则将基类指针指向子类后,再去 delete 这个指针将导致内存泄漏。
Reference in New Issue
View Git Blame
Copy Permalink