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 do you mean by object pooling?
How are delegates chosen?
Explain About delegates
Explain the difference between the system.array.copyto() and system.array.clone()?
How long can a string be c#?
Explain the difference between passing parameters by value and passing parameters by reference with an example?
What is the function of the not null constraint?
What are data types with examples?
Is an array an object c#?
Is an interface a type c#?
Can we override interface methods in c#?
Why are c# strings immutable?
What are the Types of assemblies that can be created in dotnet
Explain About multi level and multiple inheritance how to achieve in .net
What are c# i/o classes? What are the commonly used i/o classes?