Skip to main content

One doc tagged with "pitfalls"

View all tags

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.