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 are Memory foot print of an exe?
How to add controls dynamically to the form using c#.net.
What is a delegate? How can it works?
What is the use of table aliases?
What is the difference between public, static, and void?
what is a static constructor?
Which is better javascript or c#?
Why do we need abstraction in c#?
what is partial assembly reference
What is hierarchical inheritance in c#?
What is string method in c#?
How do I port "synchronized" functions from visual j++ to c#?
What is a function c#?
What is the adv of using System.Text.StringBuilder over System.String?
What is class method?