Item 9: Never call virtual functions during construction or destruction
Page 1 of 1
If you've come to C++ from another programming language like C# or Java, it may seem counterintuitive to avoid calling virtual functions during construction or deconstruction, but in C++, doing this will cause unexpected results and endless headaches.
This chapter is from the book
View this Item in PDF format.
Page 1 of 1