C++ Object Slicing with Example
In this tutorial, we are going to see how object slicing in C++. Before diving into the topic let us revise two simple concepts of object oriented programming. Inheritance Polymorphism Inheritance is said to be an IS-A relationship. For e.g. class Animal { // properties common to all animals } class Tiger: public Animal { …