Conceptual OOP Question - AArgh!

BlitzMax Forums/BlitzMax Beginners Area/Conceptual OOP Question - AArgh!

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.

I normally try to find the information that is shared by most objects. This is used to create a "base type".
(for example vehicle if you have bike, car, bus, ...)

The other types then extend this with their own "unique" properties.
This way you can for example create a list of vehicles and use the vehicles common abilities and if needed cast to an extended type which is very usefull