Wednesday, 23 January 2019

What is difference between constants, readonly and, static

What is difference between constants, readonly and, static ?

Answer:


Constants: The value can’t be changed.
Read-only: The value will be initialized only once from the constructor of the class.
Static: Value can be initialized once.

No comments:

Post a Comment