how can static member function can access global functions and data?can they access all type of global functions or data or only the functions and data mdifying only the static members?
Static member function issue
Hello @Rj.25,
Static functions can access any other static functions and data, provided those are visible using the scoping rules.
I presume that global functions and data are by definition visible everywhere, so the answer appears to be ‘yes, provided those functions and data are themselves static’.
Suggestion:
Why don’t you code this and if it can or cannot.
Hope, this would help.
Give a like if you are satisfied.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.