-
Reverse polymorphism is dangerous in C++.
-
Besides the slicing problem, values themselves do not maintain class
information.
-
Thus, a value does not ``know'' what class it is from.
-
But conversions can nevertheless be performed using casts, and are not checked.
Window * x;
TextWindow * y;
y = (TextWindow *) x;