What is difference between constants, readonly and, static ?
What is difference between constants, readonly and, static ?
Hi friends
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Deepika ChaudharyPosted Dec 1, 2012, 3:08 AM
Constant
A constant member is defined at compile time and cannot be changed at runtime. Constants are declared as a field, using the
constkeyword and must be initialized as they are declared. For example;