Calling a function of a class variable

Thank you very much for this detailed explanation, this solved my problem. So I guess C++ really uses some techniques which are differe pretty much from java or python.