reading on the internet we refer to FreeBASIC as an object-oriented language, where it is possible to create primitive classes and use them as real objects, I've seen some examples but I can't understand how they work also because when I go to compile always gives me some mistakes.
this is an example of my code where I try to understand how use it
type MyClass
    dim mystring as string
    function myfunction()as string
        dim myout as string
        myout = "Hello your message are: " + this.mystring
        return myout
    end function
end type
dim myobject as myclass
myobject.mystring = "Im noob"
print myobject.myfunction
But in this way doesnt work
 
     
    