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
Does c# support parameterized properties?
What is use of list in c#?
What is a callback c#?
Distinguish between array and arraylist in c#?
What is default parameter in c#?
Name the control which cannot be placed in mdi?
What does addressof operator do in background ?
Is c# and c sharp same?
How can you prevent escaping on backslashes in C# with string definitions?
Are arrays immutable c#?
What do u mean by delegation of authority?
Define a class and an object?
Explain constructor in c#?
What is difference between list and dictionary in c#?
Are arrays value types or reference types?