What is the Difference between read only and constant
variables?
Answer Posted / guest
Read only variable can be assigned a value at the runtime.
Where as const have to be assigned at the compile time only.
| Is This Answer Correct ? | 64 Yes | 5 No |
Post New Answer View All Answers
Can a method be sealed in c#?
How can you write a class to restrict that only one object of this class can be created (Singleton class)?
What is the property of class?
What are Uses of CLR
What are the commonly used i/o classes?
Explain boxing and unboxing in c#?
When can a derived class override a base class member?
What is a hash table in c#?
What are the return types in c#?
Name some properties of thread class.
Why to use lock statement in c#?
What is a c sharp?
Can partial class be inherited?
Explain the accessibility modifier protected internal?
What is difference between code access and role based security?