Thursday, December 2, 2010

Named Constructor Idiom

Named Constructor Idiom - Make constructor private, and then create static functions that do the construction.

Reference: http://en.wikibooks.org/wiki/More_C%2B%2B_Idioms

No comments:

Post a Comment