![]() |
"Named Constructor Idiom"?
can some body please tell me What is the "Named Constructor Idiom"?
|
Re: "Named Constructor Idiom"?
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/ |
| All times are GMT +5.5. The time now is 03:32. |