Extended Type Methods

BlitzMax Forums/BlitzMax Programming/Extended Type Methods

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.

Type a
	Method do()
		Notify 1
	EndMethod
EndType

Type b Extends a
	Method do()
		Notify 2
	EndMethod
EndType

n:b=New b
n.do()


Is there any way to make it so that calling do() performs the base type function, then the extended type function? I have a special entity that extends the base entity class. Any time this special entity is rotated, I need some special updating to occur, but would rather not rewrite the base entity method in the extended method.