These are flashcards an notes made by students on topics like 'property', 'private' and 'changes', originating from:

- Michael Jesse Chonoles
ISBN-10 0128096403 ISBN-13 9780128096406
1335 Flashcards & Notes
  • This + 400k other summaries, also in PDF!
  • A unique study and practice tool
  • Never study anything twice again
  • Get the grades you hope for
  • 100% sure, 100% understanding
Remember faster, study better. Scientifically proven.
Trustpilot Logo

Study Cards on property, private, changes

There are times that we want a property to be immune from change.

How can we do this?
Make the property private.
What is a downside of making the property private?
We can make the property private, which will be a help, but that only stops changes that originate outside of the instance.
What stronger form can we use instead of private?
If wish this to be stronger, we can add {readOnly} to the property.

This indicates that the property should be protected from all changes once it is initialized.
  • Higher grades + faster learning
  • Don't study anything twice
  • 100% sure, 100% understanding
Discover Study Smart