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.

if it didnt work, it would be pointless..this is how it was
intended to be used. A collection of base refs makes
managing specific objects easier..

type shape abstract
method draw() abstract
endtype

type triangle extends shape
method draw()
....
....
end method
endtype

type square extends shape
method draw()
....
....
end method
endtype

myshape.shape=new triangle

myshape.draw() ;draw the shape..whatever it might be

sorry for the tarded example...dont mean to be
patronising..im rusty + quite stupid anyway ;)

...er..hmmm.. :]

cheers!