string.find (), what if I want to create something similar? [closed]

0

Well, I'd like to know how these "things" I do not know, in the case of string.find (), string.copy (), string.erase (); All I can do is stringpick (string). Remembering that I just quoted examples, what I really wanted to know is what those things are called there so I can give a study: D

    
asked by anonymous 08.07.2016 / 02:14

1 answer

1

Icarus,

I understand that you already know how to use functions, but you do not yet have the knowledge of object orientation.

The string.find () for example you mentioned would be the call of a function belonging to a class or to an object (if it were in C ++ it would be an object, if it were in C # it could be either, syntax is different).

These functions belonging to classes are known in Object Orientation as methods.

Try to study the concept of Object Orientation and put it into practice with some programming language to base your studies with the practical part as well.

    
08.07.2016 / 06:25