Answer:
It will not compile properly,because it will give below error
"A readonly field cannot be assigned to (except in a constructor or a variable initializer)"
We can only initialize readonly variables at the time of declaration or in class constructor.
Asked In: Many Interviews |
Alert Moderator