0
How to access member functions in c++?
1 ответ
+ 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