What does slicing mean in C++?
- by George2
Hello everyone,
It is mentioned in C++ FAQ site -- "larger derived class objects get sliced when passed by value as a base class object", what does slicing mean? Any sample to demonstrate?
http://www.parashift.com/c++-faq-lite/value-vs-ref-semantics.html#faq-31.8
I am using VSTS 2008 + native C++ as my development environment.
thanks in advance,
George