What is mutable

Author Topic: What is mutable  (Read 635 times)

Offline chinmay.sahooTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 158
  • Karma: 0
    • Hot Shaper
What is mutable
« on: 04-26-2016, 06:34:30 »
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.


Offline TomClarke

  • Trade Count: (0)
  • Hero Member
  • *****
  • Thank You 50
  • Posts: 874
  • Karma: 0
  • Gender: Male
    • Custom Writing Service & Content Marketplace
Re: What is mutable
« Reply #1 on: 05-11-2016, 00:49:50 »
Mutable and immutable are words meaning "can change" and "cannot change" respectively. The meaning of the words is the same in the IT context:
- a mutable string can be changed
- an immutable string cannot be changed.
Your ideas, our writings - Writology.com