Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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?
Find all posts by this user
Quote this message in a reply
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.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: