what is the main differnce between const,readonly and static
Answer Posted / komilla shaheen
const is the keyword where we can intialize the variable
with some value which is constant throughout the program it
cannot be changed.
static is the keyword which is intialized at complile time
and had to change at compile time only.
readonly is for the varible which is readonly cant be
changed.
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
What is the signature of a method?
What is a function c#?
Explain what are the steps for creating clr trigger?
Explain the difference between object type and dynamic type variables in c#?
How many bytes is an int c#?
Is c# an open source?
What is the difference between string and stringbuilder in c#?
How do I do implement a trace?
What are the steps to create an assembly and add it to the gac?
What is a generic class?
Is array immutable in c#?
Why do we use abstract class in c#?
Is string a class in c#?
What is difference between a type and class?
What is different between Implicit conversion and Explicit conversion in C#?