The Slicing Problem

The answer, in C++, is that these extra data fields are simply sliced away. They are tossed, eliminated.

Question - does this matter?

Cynical answer - only if somebody notices.

Programming language designers solution - design the language so as to make it difficult for anybody to notice.

[audio] [real] Text to accompany slide8, in Chapter 12 of An Introduction to Object-Oriented Programming