Hello! I want to make a class, where the class is a parameter in the sub. Is this possible?
Something like this:
Thx for your help!
Something like this:
Class Tupel:
Sub Class_Globals
Public x As Float
Public y As Float
End Sub
'Initializes the object. You can add parameters to this method if needed.
Public Sub Initialize(pX As Float, pY As Float)
x = pX
y = pY
End Sub
Public Sub Add(pXY As Tupel)
x = x + pXY.x
y = y + pXY.y
End Sub
Thx for your help!