Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is mutable
When we declare const, the members in the data cannot be changed. If we require to change one of the data then we can declare to be mutable. It specify that the member can be updated even it is member of the constant object.
Mutable types are utilized as a part of parallel applications, where the objects of alterable esteem sort are kept up in the stack by the Common Language Runtime (CLR). This gives some advancement, which makes it speedier than heap-allocated objects.
A mutable object can be changed after it's created.
A mutable object is an object whose state can be modified after it is created.

Forum Jump:

Users browsing this thread: 1 Guest(s)