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

[Code Review] Base Class destructor must be a 'virtual' function in C++ #3

Open
taeguk opened this issue May 17, 2016 · 0 comments
Open

Comments

@taeguk
Copy link

taeguk commented May 17, 2016

https://github.com/JimJeon/sogang-univ-computer-science/blob/master/Third.Semester/CSDE/CPP-1/practice/Array.h#L13

If base class destructor is not a virtual function, it is not called when derived object is destructed.

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

No branches or pull requests

1 participant