![]() |
How to create Private Constructor.
This program shows how to create the private constructor in C++.
Code: Cpp
|
Re: How to create Private Constructor.
I have queries for some of your comments.
Code:
//Static Member Function generally called Factory Method. |
Re: How to create Private Constructor.
Hi,
Ya you are right. ByMistake i have written that. I appoligies for that. Thanks for you good comment. |
Re: How to create Private Constructor.
Quote:
It's not needed only in singleton and factory method. Static member can be used any where where you wanna to call static member function without instances of that class. Because static member functions are not part of member of that class Actually. |
| All times are GMT +5.5. The time now is 06:23. |