News for hackers. Stuff that matters.
Re:Data structures and Algorithms in C/C++11 by quizotic on Wednesday December 03, 2014 @08:48PM (#8697482)
for example: http://stackoverflow.com/questions/461203/when-to-use-virtua...

class B : public A { ... } void foo() { A* someA = new B(...); ... delete someA; }

if A destructor is not virtual, then B's resources leak.

There are no comments on this comment yet.