I have a solid understanding of most OOP theory but the one thing that confuses me a lot is virtual destructors. I thought that the destructor always gets called no matter what and for every object in the chain. When are you meant to make them virtual and why?
When to use virtual destructors?
- Post author By user user
- Post date
- Categories In c++, polymorphism, shared-ptr, virtual-destructor
- 27 Comments on When to use virtual destructors?