Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
How to access member functions in c++?
1 Resposta
+ 9
If function is public then you can access it everywhere(using instance)
to do it just use dot notation
myClassInstance.doIt()
If you have a pointer:
myClassInstance->doIt()
If it is STATIC function:
MyClass::doIt()
For members all the same