What are readonly and constant members? Like to have a practical and clearn understanding of it.
Thanks,
Puran
What are readonly and constant members? Like to have a practical and clearn understanding of it.
Thanks,
Puran
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.
Jarmo JokelaPosted May 25, 2009, 3:37 AM
Constant variables are, well, constant, meaning that you can't alter their values after they're set.
Readonly variables are like constants, but you can change their values in constructor.
Below is a code sample:
9 {1214 {17192226 }27 }