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 concrete class in c#?
What is a delegate how is it type safe?
How to transpose multi-dimensional array?
What are extension methods and where can we use them?
Which string method is used for concatenation of two strings in c#?
What are the advantages of interface in c#?
What's the difference between an integer and int?
Hi to all..I have to create an intranet application on C#.NET windows Application so please please let can you people help me as iam new in .NET and if u have any samples or website address from where i can get sample please let know.
Is object an int c#?
Is array ienumerable c#?
Explain About Web.config
What is a sealed class?
What is a strong name in c#?
What is uint c#?
What are extensions in c#?