What is the Difference between read only and constant
variables?
Answer Posted / raju
1.We can assign value to readonly field, only in
constructor or while declare the variable.But in case of
const we should assign a value while declare.
2.const=static readonly
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is callback method in c#?
Is javascript harder than c#?
Explain the constructor in c#.
What are c# collections?
What is ienumerable t in c#?
What are the benefits of using the aggregate method in linq?
Can I call a virtual method from a constructor/destructor?
What is class method c#?
What does mean c#?
what are the different ways a method can be overloaded?
Are c# strings null terminated?
What is extended class in c#?
What do you mean by jagged arrays in c#?
Explain the use of virtual, sealed, override, and abstract method?
Why do we use abstract class in c#?