Object Slicing
Object slicing occurs when you copy a derived class object to a base class object. The derived parts are "sliced off" and lost.
Object slicing occurs when you copy a derived class object to a base class object. The derived parts are "sliced off" and lost.