Posting Code Guide for BlitzMax

👉 BlitzCoder will be building a new platform and other plans to preserve and continue the Blitz legacy.

To be able to achieve this goal, we need your support by becoming a Patreon Paid Member 👈



Copy and paste this template in your topic or comment then modify the code with your own. cheers

' This just shows that when you create an object of type 'Tester',
' it inherits the New method of 'Test'...

' Base type...

Type Test

     Global Oink

     Field x
     Field y

     Method New ()
            x = 100
            y = 200
            Oink = Oink + 1
     End Method

End Type

' Another type extending the base type above...

Type Tester Extends Test

     Field z = 99

End Type

' Create a 'Tester' object...

t:Tester = New Tester

' As well as the 'z' field of 't', x and y have values, demonstrating
' that they must have been set by the Test.New () method...

Print t.x
Print t.y
Print t.z



This thread is now archived.