We can assign a value to a readonly variable at runtime (in constructor only)
till it is a unassigned 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:
Post a Comment