user image

Gagan Mishra

Job Interview Skills
English
2 years ago

Question 591. Difference Between Type Constructor And Instance Constructor? What Is Static Constructor, When It Will Be Fired? And What Is Its Use?

user image

Abhishek Mishra

2 years ago

Static constructors allow you to initialize static variables in a class, or do other things needed to do in a class after it's first referenced in your code. They are called only once each time your program runs. Instance constructors are the ones that are called whenever you create new objects (instances of classes).

Recent Doubts

Close [x]