New() Method with Abstract Method() in Base Class

BlitzMax Forums/BlitzMax Programming/New() Method with Abstract Method() in Base Class

SuperStrict

Type Base
	Method Create:Base()
		Open()
		Return Self
	End Method
   
	Method Open() Abstract

End Type

Type Anything Extends Base
   Method Open()
      Print "do stuff"
   End Method
End Type


Local t:Anything = Anything(New Anything.Create())
t.Open()

I'm NOT saying this is the best way to do what you want, but at least it's an option. ("do stuff" will be printed twice in the above example)