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 does it mean?
Is nullable type c#?
What is difference between write and writeline?
How do you concatenate in c#?
Explain the feature of c# language?
Which is faster list or dictionary in c#?
Explain about WSDL
How do I count the length of a string in c#?
What is the difference between field and variable in c#?
i want o/p 011242110 in c# code.
What is immutable in C#?
Does main have to be static c#?
hi, is compulsory .net knowledge need for biztalk server training. if need, how far?.tell me some info abt real time instructors in hyd or other?
Which string method is used for concatenation of two strings in c#?
Why do we need properties in c#?