how do i do this good
Code: Select all
new a as class 1 , 2 , 3
new b as class 4 , 5 , 6
''new c as class::add b::x , b::y , b::z
print c
end
class v3d
dim x , y , z
sub class
call v3d::class 0 , 0 , 0
end sub
sub class a , b , c
x = a
y = b
z = c
end sub
function add( a , b , c )
x = x + a
y = y + b
z = z + c
new add as v3d::class x , y , z
end function
end class