Skip to main content
gamedev.net
🔒 Locked

Static class

Started by jamescox3k Dec 15, 2002 at 1:51 PM 0 replies 350+ views
Original Post
jamescox3k
jamescox3k
If I wanted to create a class that only had static members and static functions is they a way of defining it without putting static infront of evey thing?
JC
Dean Harding
Dean Harding
No. You could make a namespace, though, and get the same effect:

namespace foo {
void bar();
}

...

int some_func()
{
    foo::bar();
}


If I had my way, I''d have all of you shot!


codeka.com - Just click it.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.