"Named Constructor Idiom"?
|
Go4Expert Member
|
|
| 13Mar2008,15:54 | #1 |
|
can some body please tell me What is the "Named Constructor Idiom"?
|
|
TechCake
|
|
| 13Mar2008,17:03 | #2 |
|
Make all constructor in private or protected member and provide a static member function as a public member.
( Reason is to make error less because constructor may have a lot of costructor, may conflict to other) Code: cpp
detail you can see http://www.faqs.org/faqs/C++-faq/part4/ |
