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.
... size is 3.07. In the town the population is spread out with 22.3% under the age of 18, 6.7% from 18 to 24, 28.0% from 25 to 44, 25.8% from 45 to 64, and 17.2% who are ...