Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
i have a class with static functions. i need to use the functions without creating an instance of the class.
is it possible?
Sure:
class A { public: static void f(); }; ... A::f(); // call function
Add a comment
No problem at all, thats the point of them.
Or you can use the singleton design pattern: http://en.wikipedia.org/wiki/Singleton_pattern#C.2B.2B
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.