|
what is the use of private constructor?
|
|
04-04-2008, 07:46 PM
Post: #1
|
|||
|
|||
|
what is the use of private constructor?
what is the use of private constructor?
|
|||
|
04-04-2008, 08:04 PM
Post: #2
|
|||
|
|||
|
RE: what is the use of private constructor?
Private constructor is used when you don't want to create the object of the class outside the class.
Normally you create a private constructor if the class is a Singleton or class contain only static utility methods. |
|||
|
« Next Oldest | Next Newest »
|

Search
Member List
Calendar
Help




