Friday, February 1, 2013

Readonly and Const


We can assign a value to a readonly variable at runtime (in constructor only)
till it is a unassined identifier, but once value is 
assigned, it cannot be changed.

In case of const we cannot assign a value at run time i.e. 
the value assigned to it at declaration time cannot be 
change

No comments:

Followers

Link