March 23, 2013

Constants and Read Only

Const
ReadOnly
You set a value to const member whose value will not change during execution of program
You set a value to readonly  member whose value will change in constructor only
You can not change a value once assigned
Only in constructor
Set at compilation time
Set during runtime

No comments:

Post a Comment