I'm not sure why you'd need to know if the function is static or not, but I guess if you really want to know that (without looking at the header file) then you do have a point. A good IDE might be...
Type: Posts; User: cpjust
I'm not sure why you'd need to know if the function is static or not, but I guess if you really want to know that (without looking at the header file) then you do have a point. A good IDE might be...
Well whether the function is static or not, there's still just one of them in memory. You don't get a new copy of the function when you create a new instance of a class. The only difference between...
I think it's because if you do it like that, it's basically the same as doing this:
A* a = new A;
a->print();
Although I'm not sure why the static version works.
Use this instead of the ugly...