Hi Everyone,
Please let me know the solution of below question :
Q.1) Why static constructor cant take parameter and do not have access modifier?
Thanks and Regards
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Oct 23, 2012, 12:42 PM EDT
Rushal Arora191 reputationPosted Oct 24, 2012, 7:14 AM EDT
Santhosh Kumar JayaramanRank #563 · 4.3K reputationPosted Oct 24, 2012, 7:46 AM EDT
Only when you create new object of a class, you can pass parameter, but here we cant call static constructor, because it ll be automatically called..
so now u mite know why static dont have parameters.
Rushal Arora191 reputationPosted Oct 24, 2012, 10:19 AM EDT
Santhosh Kumar JayaramanRank #563 · 4.3K reputationPosted Oct 24, 2012, 8:11 PM EDT
Rushal Arora191 reputationPosted Oct 26, 2012, 12:04 AM EDT
Q. What is the reason for not specifying the Access Modifier?
Santhosh Kumar JayaramanRank #563 · 4.3K reputationPosted Oct 26, 2012, 9:34 AM EDT