class A { int x; }; class B { B( ) : x(1), c('a') { } int x; char c; }; int main( ) { A a; B b; a = b; // b.c == 'a' is "sliced" off return 0; }