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 reflection in c#?
What is the difference between “dispose” and “finalize” variables in c#?
Give some examples for built in datatypes in c#?
what is the meaning of Object lifetime in OOPS
What is stringbuilder c#?
What are the advantages of clr procedure over t-sql procedure?
Explain lock, monitors, and mutex object in threading.
What is collection class c#?
Is c# front end or back end?
Why delegates are type safe in c#?
What is a void c#?
What is the difference between static class and singleton class in c#?
How can I create image pieces/sub image?
What is the root element of an xml file?
Can we declare private class in c#?