Noob: "Extends"

BlitzMax Forums/BlitzMax Beginners Area/Noob: "Extends"

MGE(Posted 2008) [#1]
Type T1
field x:int
End Type
'
Type T2 Extends Type T1
field y:int
End type
'
Global MT1:T1 as new T1
Global MT2:T2 as new T2
'
So...MT1 has these properties:

MT1.x

MT2 has these properties:

MT2.x
MT2.y

Right? :) Or am I not getting it....still. :(


Galaxy613(Posted 2008) [#2]
True.


MGE(Posted 2008) [#3]
Thanks for clearing that up. Great...another "Welcome to the real world" moment for me. I am such a noob at Blitzmax after all. Jeesh.....


MGE(Posted 2008) [#4]
If "Extends" was replaced with "Inherits" it would make more sense for my feable brain. :)