What is different between static member function and global function?
void globalFunc()
{
}
class Test
{
public:
//In grammar side, object's not own this function
static void staticFunc();
};
The static member function is global function but, it can classify with meaning and limit access range.
But i can not understand why the static member function's calling convention is a [this call].
I understand that normal member function must be [this call] because it must need the caller object's address but, why the static member function has a this call convention? I think it does not need caller's address, because it is not object's function. Is there have any difference between static member function and global function? (Not in grammar side But also low side)
Static class functions can
Global non-friend functions can do none of those.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With