Very Simple, Very IMP...

Hey everyone,,,

I just cannot access the word in my head..

class A
{
public :
static A a(); // what is this calling?
};
Last edited on
That is declaring a static member function called 'a' which returns an instance of the class 'A' itself.
A static class member means that it doesn't depend on an object, is more like a global function
http://en.wikipedia.org/wiki/Static_method#Static_methods
Bazzy (3527) Link to this post Dec 22, 2009 at 4:25pm
That is declaring a static member function called 'a' which returns an instance of the class 'A' itself.
A static class member means that it doesn't depend on an object, is more like a global function
http://en.wikipedia.org/wiki/Static_method#Static_methods



Thanks a lot for replying but what I need is the "concept name" like inheritance, composition, etc..
closed account (z05DSL3A)
wikipedia wrote:
...in which case it is called a class method or a static method...
Topic archived. No new replies allowed.