Reply
Old September 11th, 2007 Top | #1
 
Complete's Avatar
OSNN Addict
Joined: August 2005
Posts: 94
Reputation: 10
Power: 83

Default Utility Class

I want to create a seperate Utility class -- a "CUtil" class -- to do some basic fundamental stuff like string conversions.

OK, now, I can make all those methods as static so that I do not have to instantiate the CUtil class in order to do things.

um...

So how would that look in the calling routine?

Would it be something like this:
Code:
 
str_return = CUtil:FunctionName(stuff);
Complete is offline   Reply With Quote
Old September 11th, 2007 Top | #2
 
X-Istence's Avatar
*
Joined: December 2001
Location: USA
Posts: 6,496
Reputation: 2808
Power: 220

Default Re: Utility Class

What programming language?

If it is C++, you would do:

Code:
str_return = CUtil::FunctionName(stuff);
That being said, are you sure that some of this stuff is not already available in one of the many STL libraries?
X-Istence is offline   Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
Has anyone worked with the BSTR class? Complete Web Design & Coding 1 September 15th, 2007 8:50am
For Class -- Pong X-Istence Web Design & Coding 3 April 22nd, 2007 9:05pm
bored in class what are you doing? VenomXt Green Room 19 February 1st, 2005 12:11pm
VerifierBug.class Trojan!! Static 99 Windows Desktop Systems 10 September 10th, 2003 11:25am
CSS class? Nismo83 Web Design & Coding 2 October 22nd, 2002 2:40am