How many times can a constructor be called during lifetime of the object?
Answers
Answered by
1
only once
static constructor allow you to initialize static variable in class, or do other thing needed to do in a class after it's first referenced in your code. They are called only once each time your program runs.
static constructor allow you to initialize static variable in class, or do other thing needed to do in a class after it's first referenced in your code. They are called only once each time your program runs.
Similar questions