Mutable and Immutable classes
Posted on September 7th , 2010 by Admin
|
|
Immutable type are types in which instance data fields and properties does not change after the creation of instance in another way we can say that value is changed in same memory and also helps in performance boosting. On the other hand mutable type are A type whose instance data fields and properties can be changed when the instance is created or we can also say when we change the value of Mutable objects the new memory is created and new value is stored |
| in new memory Most Reference Types are mutable. |
|
|