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

Asked

Viewed 33 times

0

Guys, I’d like to know how these "things" work in which I don’t know the name, in the case string.find(), string.copy(), string.Rase(); All I know how to do is stringpick(string). Remembering that I just cited examples, what I really wanted to know is what is called those things there so I could give a study :D

  • 2

    Try to clarify your question better, if you don’t know the name at least explain what you want. The question talks about things that no one has any idea what it is.

  • 2

    These things are called methods.

1 answer

1

Icarus,

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

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

These class functions 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 too.

  • Okay! An acquaintance of mine told me to look for offspring, and I ended up finding the answer

Browser other questions tagged

You are not signed in. Login or sign up in order to post.