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 is a dimensional array?
Give an example of a ctype.
What is a method signature c#?
How can I produce an assembly?
Does c# support try-catch-finally blocks?
What is the difference between IEnumerator and IEnumerable?
What are extensions methods in c#?
What are the different types of classes in c#?
What are the 3 different types of arrays?
What is Fragmentation and its Types?
What is session management in c#?
What is the default value of datetime in c#?
What is mvc pattern in c#?
What are some examples of desktop applications?
What do you mean by delegates and explain different types of delegates?