C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
iOS
Java
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
12
Reply
Can you overload static constructor?
Abhinav Golwalkar
12y
4k
0
Reply
Delete Row
Delete Column
Insert Link
×
Insert
Cancel
Embed YouTube Video
×
Width (%)
Height (%)
Insert
Cancel
Table Options
×
Rows
Columns
First row as header
Create Table
Insert Image
×
Selected file:
Alignment
Left
Center
Right
Select an image from your device to upload
Upload to Server
Cancel
Submit
No, Static constructor can not have parameters.
Anil Kumar Murmu
9y
0
No
Anil Kumar Murmu
9y
0
No
Rahul Prajapat
10y
0
NO
ragini varshney
11y
0
yes but static constructor can't access directly
Gokul Rathod
11y
0
No, because you cannot invoke a static constructor explicitly, it is invoked implicitly by the run time before the objects are instantiated. Also, you cannot pass any parameters to a static constructor(its always parameter less) therefore it cannot be overloaded.
Rama
11y
0
No, You can't overload static constructor because.So you can not pass parameters in static constructor at run time that's why you can't overload it.
prahlad sathwara
11y
0
No
Ashish
11y
0
No, we can not overload static constructor.
Mahesh Alle
11y
0
we can not overload static constructor because we can define static construtor only once within the call without parameters
Ashish Singh
12y
0
No, You can't overload static constructor because you have no control on which constructor will be call at run time.So you can not pass parameters in static constructor that's why you can't overload it.
Sandeep Singh Shekhawat
12y
0
No you can't overload it; a static constructor is useful for initializing any static fields associated with a type
Rajesh Singh
12y
0
Message