static constructor:-

Ø A static constructor should not be declared with any access modifier.

Ø A static constructor does not accept parameters

Ø A static constructor is called automatically.

Ø There is no way to call a static constructor directly.

Ø Can’t stop the execution of Static constructor

results matching ""

    No results matching ""