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
Write a program to create a user control with name and surname as data members and login as method and also the code to call it. (Hint use event delegates) Practical Example of Passing an Events to delegates
What is meant by unicode characters?
What is console application with example?
Is typeof c#?
Is array passed by reference in c#?
how background thread access to ui control?
What is a delegate? How can it works?
What is entity framework in c#?
What is system console writeline in c#?
How can you achieve run time polymorphism in C#?
What is the difference between array and arraylist in c#?
What is the use of jit ? Jit (just - in - time) is a compiler which converts msil code to
Value Type and Reference Type Data type in C#?
What is a singleton unity?
Why objects are stored in heap in c#?