Just a short post today, or a question rather, on what must be the easiest subject I’ve written about yet. Though, I’ve caught myself making errors against it often. Nowadays I’m extra cautious when writing about inheritance.
What do you think about first when you hear “up”?
What do you think about first when you hear “down”?
Now, how do we programmers interpret upcasting and downcasting?
You upcast to an object which can do less, and you downcast to an object which can do more.
UPDATE: I have since started a discussion on this on Programmers Stack Exchange.