Virtual destructor for base class and object slicing
After reviewing what I understand of polymorphism and object slicing, I believe that the virtual destructor has no obvious link with object slicing. If it has it may worth writing it somewhere. Anyway a quick description of object slicing would be nice I think ;).
Sources:
- Guideline 4 pointed by cpp reference: http://www.gotw.ca/publications/mill18.htm
- https://www.geeksforgeeks.org/object-slicing-in-c/
Note: the wikipedia page on object slicing seems really off.
Edited by GILLES Sebastien