Utility Class

#1
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);
 

X-Istence

*
Political User
#2
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?
 

Members online

No members online now.

Latest posts

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,971
Messages
673,299
Members
89,016
Latest member
Poseeut