For example, in C++
class A { int age; String name; }; class B : public A { bool is_male; }; B b; A a; a = b; // slicing occurs.
... households out of which 38.0% have children under the age of 18 living with them, 48.7% are married couples living together, 20.9% have a female householder with no husband ...