3 ms·
It does teach you a lot. I spent ages wondering why my inherited class was blowing up on destruction in C++ - the parent destructor was not virtual and I was de
by 72deluxe 13y ago
It does teach you a lot. I spent ages wondering why my inherited class was blowing up on destruction in C++ - the parent destructor was not virtual and I was deleting the object using a pointer to the base type. So working this out has meant that there is a big burn mark in my brain to not do this again. Debugging really is good fun and helps with learning.