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.
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.
Santhosh Kumar JayaramanPosted Oct 26, 2012, 1:34 PM
Rushal AroraPosted Oct 26, 2012, 4:04 AM
Q. What is the reason for not specifying the Access Modifier?
Santhosh Kumar JayaramanPosted Oct 25, 2012, 12:11 AM
Rushal AroraPosted Oct 24, 2012, 2:19 PM
Santhosh Kumar JayaramanPosted Oct 24, 2012, 11:46 AM
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 AroraPosted Oct 24, 2012, 11:14 AM
VulpesPosted Oct 23, 2012, 4:42 PM