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
Why do we need constructor?
What is the wildcard character in sql?
Differentiate between response.expires and response.expiresabsolute?
List down the differences between “dispose” and “finalize” methods in c#.
What is the difference between icomparer and icomparable in c#?
What is a view? What is the use of it?
What is the use of 0 in c#?
What are the types of serialization?
Can properties be overloaded in c#?
How do I download a program to my desktop?
Can a abstract class have a constructor?
For methods inside the interface why can’t you specify the accessibility modifier?
Define xslt.
What is func c#?
Define multicast c# delegate?