shukla raghav wrote:why would we ever need a static constructor. what does it mean by a static constructor ?
static refers to "not associated with specific object" and can be called using class reference rather than object reference. But how does this apply to a constructor
The closest you come to a static constructor is a static initializer. It works like a static default constructor would work if it existed.