Answer Posted / ganesh
a constant must be initialized at the time of decleration
and this value cannot be changed anywhere in the program.
whereas a readonly can be initialized at anywhere in the
program and the value can be changed
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Why do we use yield in c#?
Can a method return multiple values in c#?
What is a destructor in c#?
What is string class in c#?
Why do I get an error (cs1006) when trying to declare a method without specifying a return type?
When would you use generics in your code c#?
What is the difference between yield and return?
Explain the differences between static, void and public in c#?
What is the extension of c# file?
Can we inherit static class in c#?
What does the keyword “virtual†declare for a method or property?
Is c# an open source language?
What are properties in C#?
What is the difference while using directive vs using statement ?
Can we override interface method?