For example, if you have an object of the std::string class, you can call the `compare(string str)` function as follows:

```
myString.compare(myOtherString);

```

How can I make my own function that I can call on a string in the same way? Example:

```
myString.contains(char[] chars);

```