Answer Posted / nithya
A readonly can be initialized only the time of variable
declaration or only in the constrator,Apart from that we
cannt modify anywhere in our program.
But Constant must be initialized at the time of declaration.
And this value cannt be changed in constractor level also.
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Which class does the remote object has to inherit?
What is static void main in c#?
what is IDisposal interface,IComparable,IEquatable,IFormatable
What is the property of class?
Can you use foreach iteration on arrays in c#?
What is class in oops with example in c#?
What are circular references? How garbage collection deals with circular references.
From which base class do all Web Forms inherit from?
What is difference between dynamic and var in c#?
What is overloading with example?
What is use of a HashTable in .NET?
What is the difference between int16 and int32 in c#?
Give examples for value types?
Is array thread safe c#?
Is as operator in c#?