Blitzmax - OOP tutorial

Started by TomToad, September 16, 2018, 11:08:41

Previous topic - Next topic

TomToad

Not sure if I should post this here or on the BlitzMax forum.  Decided to post it here.

This is an old tutorial on Blitzmax types and OOP, written by John Judnich, that I found very useful.  Thought I'd post the links here so new BMX programmers can benefit from it.
The pdf file can be downloaded from Brucey's site here. http://brucey.net/programming/blitz/misc/library/BlitzMax_OOP_Tutorial.pdf
The original post can be found here http://www.mojolabs.nz/posts.php?topic=59233

quote from original post
QuoteThis tutorial is intended for programmers already familiar with BlitzMax's general syntax, but not with the concepts or uses of custom types or object-oriented programming techniques.

When finished reading this tutorial, you should have a good understanding of most of BlitzMax's OOP features:
* Type Definitions with Fields
* Type Definitions with Methods
* Inheritance
* Polymorphism
* Constructors & Destructors
* Static Methods & Fields

Not only does this tutorial teach you how to use these features, but where and why they should be used.
------------------------------------------------
8 rabbits equals 1 rabbyte.

Xerra

I remember this tutorial well from my Blitz days. It was incredibly helpful when I was trying to understand how OOP worked. Very well written, too. Pretty sure I've still got a print-out of this in a folder somewhere in the man cave.

This needs to be kept somewhere safe so newer Blitz users don't miss out.
M2 Pro Mac mini - 16GB 512 SSD
ACER Nitro 5 15.6" Gaming Laptop - Intel® Core™ i7, RTX 3050, 1 TB SSD
Vic 20 - 3.5k 1mhz 6502

Latest game - https://xerra.itch.io/Gridrunner
Blog: http://xerra.co.uk
Itch.IO: https://xerra.itch.io/