The problem you are facing is called Object Slicing in CPP. It happens when any base class object/pointer is used to access the object of the derived class. The extra features i.e. the members are...