String::New: what is it?

Posted by JavaMan on Stack Overflow See other posts from Stack Overflow or by JavaMan
Published on 2010-06-18T11:29:33Z Indexed on 2010/06/18 11:43 UTC
Read the original article Hit count: 354

Filed under:
|

I am from a Java background and is learning C++. I encountered the following C++ code:

String source = String::New("'Hello' + ', World'"); 

As what I understand so far, this should be a call to static member function 'New' of class 'String'. But, I've searched through the whole header file defining 'String', there is not any static member named 'New' in the String class or its super classes. Is there any special meaning attached to String class or the New member function in C++?

© Stack Overflow or respective owner

Related posts about c++

Related posts about string