what is the main differnce between const,readonly and static
Answer Posted / raja
1. we can initialize constant variable only at the
declaration where as readonly varaiable can be initialized
at either declaration or in constructor.
2. we can't use static modifier for the const variable
where as readonly variable can be declared as static
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Hello! How to do this: "Create manifest utility intended for creating update content files. Application should take a set of files as input parameter and generate XML based manifest file as output one." I use C# and vs.net 2003. It's urgent! Help please, thanks. Mayana
Is an interface a type c#?
Does main have to be static c#?
What do you mean by hashtable c#?
What is a decimal in c#?
What is ispostback c#?
what is the difference between a struct and a class in c#?
Are attributes inherited c#?
Which program construct must return a value?
Why do we use interfaces in c#?
What do you mean by directing?
Can arraylist hold primitive types?
What are partial classes and use of partial classes?
What is default value of enum c#?
Explain about c# language.