Pergunta de entrevista da empresa Luxoft

Static constructors. What it is? For what? When are they called?

Resposta da entrevista

Sigiloso

25 de set. de 2018

A static constructor is used to initialize any static data, or to perform a particular action that needs performed once only. It is called automatically before the first instance is created or any static members are referenced.It is called when the class is accessed for the first time.