What is difference between Private and static Constructor??
Why we need constructors in our program??What is difference between private and static constructors??
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rajeev KumarPosted Mar 6, 2023, 1:40 PM
Hi Priyanka
Static constructor is called before the first instance of class is created, wheras private constructor is called after the first instance of class is created. 2. Static constructor will be executed only once, whereas private constructor is executed everytime, whenever it is called.
Rajanikant HawaldarPosted Oct 7, 2020, 11:57 AM
Farhan AhmedPosted Oct 7, 2020, 11:17 AM
Mageshwaran RPosted Oct 7, 2020, 11:09 AM
Rajanikant HawaldarPosted Oct 7, 2020, 8:47 AM
Hiten PandyaPosted Oct 7, 2020, 8:12 AM
Vikas JhaPosted Oct 7, 2020, 7:58 AM
https://www.c-sharpcorner.com/UploadFile/0c1bb2/constructors-and-its-types-in-C-Sharp/
https://www.tutlane.com/tutorial/csharp/csharp-private-constructor-with-examples