Home > Articles > Programming > C/C++

Item 9: Never call virtual functions during construction or destruction

  • Print
  • + Share This
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.
  • + Share This
  • 🔖 Save To Your Account