Can you create instance of a class which has private constructor?



Can you create instance of a class which has private constructor?..

Answer / Tulika Chatterjee

No, it's not possible to create an instance of a class with a private constructor directly. To work around this limitation, you can use factory methods or dependency injection techniques.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

What is a system lock?

2 Answers   Wipro,


I am looking for a fast track course (MAX 15 days) in MS.NET 3.5 and SQLSERVER 2005 in hyderabad or mumbai or pune. I am working in mumbai so cannot gor for long course. Can any body suggest me the best couching class or best faculty for the same. Thanks.

2 Answers  


How to view a .NET assembly?

1 Answers   QuestPond,


What is the use of trace utility?

1 Answers  


Please explain about "this" object

4 Answers   CTS,


Explain what do the terms “boxing” and “unboxing” mean?

1 Answers  


i m fresher,hav SQL knowledge but in my ofc. i hav to work on dotnet. so plz tell me how to learn it,? from where to stat? i hav C prog. knowledge, ASP.net

1 Answers  


What is RunTime Polymorphism?

5 Answers   Deloitte, eClerx, Horizon, Intel, Pragna Technologies,


What is the concept of inheritance in .net?

1 Answers  


What is the use com component in .net?

1 Answers  


Explain .net framework overview?

1 Answers  


Explain something about WebService?

1 Answers   BirlaSoft,


Categories