Slicing

Slicing [...] will happen when an object of a derived class is copied to an object of a base class.

struct Base {int base_;};

struct Derived : Base {int derived_;};

int main() {
  Derived d;
  Base b = d;   // slicing, only the Base parts of (base_) are copied
}

...