Inheritance Sanity Check

BlitzMax Forums/BlitzMax Beginners Area/Inheritance Sanity Check

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Yep you got it.

When you say Thing is a Type A. And then passit a type B, thats ok because B has a "IS A" relationship with A.

That is anywhere that wants and A will accept a B, because it is a A.
In your example Thing knows its a b, and so calls the overridden function.

http://www.blitzbasic.com/Community/posts.php?topic=61748#691599