First page Back Continue Last page Graphics
Dynamic Binding
(pointers & references)
Although normally you can't assign an address of one type to a pointer of another type.
And, you normally can't let a reference to one type refer to another type.
However, upcasting allows a reference or a pointer to a base class to point to or refer to a derived-class. We saw this previously in the Brass and Brass Plus classes. (five slides from the end on last set of slides.)