Intro to OO

BlitzMax Forums/BlitzMax Tutorials/Intro to OO

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.

Yes, self can be omitted in normal cases like that.

However look at what this example does:
Type Rocket

	Field fuel = 10

	Method setFuel(fuel)
		Self.fuel=fuel ' (the fuel field of this instance of Rocket) = (the fuel parameter passed to the setFuel method)
	End Method

End Type