August 6, 2010 at 12:47 PM
yes, you can declare the constructor as private.
Having only private constructors means that you can't instantiate the class from outside the class.
if you want to restrict users to create instance of the class, than you can declare constructor as private.
August 6, 2010 at 10:38 PM
Why you want to declare constructor as private.
Yes we can declare Constructors as private but not in Inheritance.