Where is ArduinoCloud object instantiated?

In Arduino IOT cloud sketches there are calls to the "ArduinoCloud" object like, for example:

ArduinoCloud.begin(ArduinoIoTPreferredConnection);

Does anybody know where this object "ArduinoCloud" is instantiated and from what class?

As there are no documentation at all about what are the services this object offers, I would like to know at least, what piece of code could I inspect to determine this.
The most obvious answer would be that "ArduinoCloud" is instantiated from the "ArduinoIOTcloudClass" class. but, I can't find where this instantiation is made. And in the "ArduinoIOTcloudClass" class there is no "begin()" method....

So, the correct answer has to be more subtle.

Here line 852

UAU!!!!
I am trying to figure out this for a long time!!!
Thanks a lot!
I wonder how did you find this.......
Anyway, I'll keep your contact.... Whenever I have a question I will ask you directly... eheheh

Don’t ask me directly, ask the forum.

It was not too difficult to find, I googled ArduinoCloud.begin to go to the right GitHub repo and then did a search for ArduinoCloud in that repository. Once I saw the line with extern I knew the type and then it was just a matter of going to the class, usually those variables are instantiated at the end of the .cpp, which was the case.

So probably less than 1 minute search :wink:

Ok! I understand now! My problem is that I don't know much about GitHub. It is kind of a riddle to me......