OOP question.

BlitzMax Forums/BlitzMax Beginners Area/OOP question.

Craig H. Nisbet(Posted 2007) [#1]
Do you always have to extend objects in a chain as in...

type transform
type entity extends transform
type car extends entity


or is there a way to...

car extends entity and transform?


The goal is that I my not want entity to extend transform on it's own.


ziggy(Posted 2007) [#2]
No, there's no multiple inheritance on BlitzMax.


Who was John Galt?(Posted 2007) [#3]
<beaten to it>


FlameDuck(Posted 2007) [#4]
No, there's no multiple inheritance on BlitzMax.
No duck typing either, which is much superior to multiple inheritance. You can probably fake it well enough with reflection, if you're willing to take a potential performance hit.