Answer Posted / bhuvana
Read Only and Constant are like variables whose value once
given (initialized) cannot be changed.
The difference between Read Only and Constant is that
Constant can only be initialised at the time of declartion
but
Read Only field can be initialised at the time of
declartion or in constructor.
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What do you mean by hashtable c#?
What is executescalar in c#?
When would you use generics in your code c#?
What is the usage of OLE?
Is c# slower than java?
How do destructors and garbage collection work in c#?
What is lazy in c#?
What are Regex / regular expressions ?
What are the examples of data types?
What are the benefits of using generics?
What is the difference between int and int in c#?
Why do we use 0?
What is a di class?
What is concrete class in c#?
Explain manifest in c#.